Hello World Program in Dart
void main() {
print('Hello World!');
}
Dart, syntactically, has a lot of similarities with the languages with like C, Java, Python, and so forth.
The main()
function is the entry point of a Dart program.
If you run this program, you will get the following output:
Hello World!
What's Next
If you are interested in learning Dart programming, then go ahead and set up a development environment.
- Next Step: Dart development environment setup
C C++ C# Clojure Crystal D Erlang F# Go Haskell Java Javascript Julia Kotlin Lua Python Rust Scala Swift Typescript