VIDEO 9 javascript
Sat Oct 26 2024 17:35:13 GMT+0000 (Coordinated Universal Time)
Saved by
@E23CSEU1151
/////////////////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
content_copyCOPY
Comments