Skip to content

Instantly share code, notes, and snippets.

@Davidegloh
Last active September 6, 2021 12:24
Show Gist options
  • Save Davidegloh/ee38b603e2913b1c621cb5e651bc7287 to your computer and use it in GitHub Desktop.
Save Davidegloh/ee38b603e2913b1c621cb5e651bc7287 to your computer and use it in GitHub Desktop.
[Types and Variables-Solidity]#variables #solidity
// 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