Exploring Blockchain Development — Day 2

Understanding Variables in Solidity

Integers

This is not our first variable you have created. In the previous article we create a string variable and assigned a value to it. Lets create an integer variable named myUInt. A uint is an alias for uint256 which is an unsigned integer, meaning it will accept positive numbers from 0 to 2²⁵⁶.

Boolean

A boolean can only have two values either true or false.

Address

Now we will look at the Address type.

Strings

Strings are classified as Reference Type because we need to explicitly provide a data area where it is stored and strings are an array of characters.

--

--

A Data & Analytics Consultant who is expanding into developing experiences in XR, Enterprise and Gaming space using Unity www.jeannoelseneque.com

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Jean-Noel Seneque

A Data & Analytics Consultant who is expanding into developing experiences in XR, Enterprise and Gaming space using Unity www.jeannoelseneque.com