Last active
September 6, 2021 12:24
-
-
Save Davidegloh/ee38b603e2913b1c621cb5e651bc7287 to your computer and use it in GitHub Desktop.
[Types and Variables-Solidity]#variables #solidity
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
// JS is an untyped language | |
var a = 1; | |
var b = "Hello"; | |
var c = false; | |
var d = 2.5; | |
// Solidity uses a typed language | |
int a = -1; // int means "signed integer It can be positive and negative nb | |
uint aa = 2; //uint means "unsigned "integer" can only nb >= 0 | |
string b = "hello"; | |
bool c = false; | |
address d = 0x5B38Da6a701c568545dCfcB03FcB875f56beddC4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment