/////////////////datatypes summary ///////////////////// /// primitive datatype // 7 types : string. number, boolean , null , undefined , symbol , bigint const score = 100 const scoreValue = 100.09 const isLoggedIn = false const outsideTemp = null let userEmail;// undefined const ID = Symbol('1234') const anotherID = Symbol('1234') console.log(ID === anotherID );// false const biggNumber = 2774763796237673n // bigint // refrenced types(non primitive datatype ) // array , object and function const heros = ["her0","naagraj","doga"]; //array let myObj= { // object name: "hitesh", age: 22, } const myFunction = function(){ // function console.log("hello wrold"); } console.log(typeof outsideTemp); // object console.log(typeof myFunction); // function object console.log(typeof ID); // SYMBOL
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter