Skip to content

Instantly share code, notes, and snippets.

@nitya
Last active April 29, 2018 20:12
Show Gist options
  • Save nitya/a1b9a622f83209ecd5c5fed95c2a04fd to your computer and use it in GitHub Desktop.
Save nitya/a1b9a622f83209ecd5c5fed95c2a04fd to your computer and use it in GitHub Desktop.
DartLang 101-1
<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>
/* 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