adsterra

Undefind or null value in Java Script!!

What is null?

There are two features of null you should understand:
  • null is an empty or non-existent value.
  • null must be assigned.
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)


Post a Comment

0 Comments