Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 1.51 KB

File metadata and controls

29 lines (20 loc) · 1.51 KB

Backend-Mega-Project

console.log(typeof null); // object console.log(typeof undefined) //undefined

the equatity checks and comparison checks works differently. The comparsion check converts null to a number (0) treating it as 0

Reference type : Non-primitive

Functions,Array, Object

let myfunc = function(){ console.log("heyyo"); }

typeOf object = null

stack m bani hui cheejo ka value milta hai lekin heap m bani hui cheejo ka reference

// get user from body // validation // check email is crct , password is crct , name is crct // check if user already exists // takes file from user // upload it to server through multer // upload it to cloudinary // create user and save the user to db // generate access token for user