Last active
April 29, 2018 20:12
-
-
Save nitya/a1b9a622f83209ecd5c5fed95c2a04fd to your computer and use it in GitHub Desktop.
DartLang 101-1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript" src="https://www.google.com/jsapi"> | |
</script> | |
<h2>Hello Dart World!</h2> | |
<section> | |
<p> | |
This program simply prints out "hello" the specified number of times, on the default Javascript console. | |
Run it via the DartPad browser app using | |
<a href="https://dartpad.dartlang.org/a1b9a622f83209ecd5c5fed95c2a04fd>"> this link </a> | |
</p> | |
</section> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* My first Hello World Program in Dart */ | |
void main() { | |
for (int i = 0; i < 5; i++) { | |
print('hello ${i + 1}'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment