1.What is undefined in JavaScript
a variable which is not assigned a value is “undefined”
for e.g
let y;//undefined
2.What will be the output of undefined == null and undefines === null? why?
strickly equality(===)
let x;//undefined
let y = null;
console.log(x == y);//true
because “null” and “undefined” are represents nothingness
let x;//undefined
let y = null;
console.log(x == y);//false
because “null” and “nothing” contain different datatype
“undefined” itself is a data type,“null” is a primitive data type
can you explicitly assign “undefined” to a variable
yes i do cab explicitly assign “undefined” to a variable
for e p
let x = undefined;
console,log(x);//undefined