Datatypes in Javascript

 "use strict"; //treat all JS code as  newer version


//alert(3+3); (used id browser)

/*We are using Node.js not browser*/
//Code realiabity should be used
//Ecma is standard of browsers in javascript


//Primitive Datatype

let name = "Debadatta" /*String (used in single coat and double coat,
Dc should be prefered)*/
let age = 18 //Numeric (range 2 to the power 53)/Let isloggedIn = false //Boolean (true or false)

//null- standalone value (it's not same as zero), It is a object
//undefined
//symbol - Unique



//Not Primitive

console.log(typeof ["Debadatta",18,false]);

Comments

Popular posts from this blog

Array in function Javascript

Array in Javascript

AMAZON HOME PAGE CLONE PROJECT