Use print() to print a string to the console of your browser : import ‘dart:html’; main() { var value = querySelector(‘input’).value; print(‘The value of the input is: $value’); } You will see a message printed to the developer console. Follow this answer to receive notifications.9 May 2016
Read moreHow do you get a variable type in Dart?
Numbers in Dart You declare instances of them using the keywords var, int, num or double. Use var if the variable can be dynamic and hold any type of variable. That’s more or less as it is in JavaScript. Use int or double to explicitly declare the type of the variables .
Read more