Examples of Datatypes:
// CLASS TOPICS : VARIABLE , CONSOLE , NUMBER DATA TYPE
a = -10
heap memory -> a variable will be stored in heap memory
and this a variable will refer to a value 10
console.log(a);
console is used to print values in your terminal window and in your browser console
b = 1.1
floating number b
typeof(a)
it is used to check type of a variable
// OPERATIONS
console.log(10 + 2 - 2)
console.log(3 % 10);
% -> means modulus and modulus give you reminder
// BODMAS
a = (1 + 2) * (3 + 5)
console.log(a);
Comments
Post a Comment