Created with <3 with dartpad.dev.
Created
June 19, 2023 15:52
-
-
Save onumanfj/0122dc9258f6b3eff1bf28641430a432 to your computer and use it in GitHub Desktop.
dart - variables
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void main () { | |
//primitive data types | |
late int num; | |
num = 10; | |
String myName = 'Francis'; | |
bool isMale = true; | |
dynamic foo = 2; | |
foo = 'hello world!'; | |
print(num); | |
print(myName); | |
print(isMale); | |
print(foo); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment