You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
jrosendo 53af9f2ecb docs(mobile-dev): add mobile branch subjects to public 2 years ago
..
README.md docs(mobile-dev): add mobile branch subjects to public 2 years ago

README.md

Variables

Instructions

In Dart you can declare variables in two ways:

var strPatrick = 'Patrick';
// or ...
String strSpongebob = 'Spongebob';
  • The first way declares using var which detects variable types automatically.
  • The second way explicitly declares using variable's type, in the example it is String.

Declare and initialize following variables:

  • obj of type Object containing any value;
  • planet of type String containing planet's name you live on;
  • year of type int containing current year;
  • lucky of type bool containing true of false (you decide);
  • constant pi of type double containing pi value with 2 decimal points;
  • Note: no main needed!