Print to the console
on Sunday, 12th of July, 2020
In a previous lesson, you saw a program that print's "Hello, World" to the console.
void main() {
print('Hello, World!');
}print is used to log to the console. It's often helpful when you're debugging a Dart program.
void main() {
// change string to print whatever you'd like!
print("Hello, World!");
}- previous: Install Dart on your machine