Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

Dart simple program

// Define a function.
void printInteger(int aNumber) {
  print('The number is $aNumber.'); // Print to console.
}

// This is where the app starts executing.
void main() {
  var number = 42; // Declare and initialize a variable.
  printInteger(number); // Call a function.
}
Source by dart.dev #
 
PREVIOUS NEXT
Tagged: #Dart #simple #program
ADD COMMENT
Topic
Name
3+2 =