Skip to content

Commit

Permalink
Commit changes
Browse files Browse the repository at this point in the history
  • Loading branch information
neeru24 committed Sep 9, 2024
1 parent 014e677 commit ba01dbb
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions Javascript/datatypes_Types.js
Original file line number Diff line number Diff line change
@@ -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);

0 comments on commit ba01dbb

Please sign in to comment.