What is null?
There are two features of null you should understand:
null
is an empty or non-existent value.null
must be assigned.
What is undefined?
Undefined most typically means a variable has been declared, but not defined.
Example:
var temp =0
var temp1
console.log("current temperature " + temp)
console.log("current undefine value " +temp1)
//boolean-true/false
let actualMark = 1
let MyGrade = (actualMark >= 10)
console.log(MyGrade)
0 Comments