diff --git a/Javascript/datatypes_Types.js b/Javascript/datatypes_Types.js new file mode 100644 index 0000000..49ef093 --- /dev/null +++ b/Javascript/datatypes_Types.js @@ -0,0 +1,36 @@ +// Primitive + +// 7 types : String, Number, Boolearn, null, undefined, Symbol, BigInt + +const num = 100 +const scoreValue = 100.3 + +const isLoggedIn = false +const outsideTemp = null +let userEmail; + +const id = Symbol('123') +const anotherId = Symbol('123') + +console.log(id === anotherId); +// const bigNumber = 3456543576654356754n + + +// Reference (Non primitive) + +// Array, Objects, Functions + +const names = ["neeru", "sanchit", "armaan", "Manjot"]; +console.log(names); + +let myObj = { + name: "neeru", + age: 19, +} + +const myFunction = function(){ + console.log("Hello world"); +} +myFunction(); + +console.log(typeof anotherId);