What will the following code return:Boolean(x==="5") if x=5?
Boolean Values Very often, in programming, you will require a data type that can only have one of two values, like
The Boolean() Function to find out if a variable or an expression is true, Everything Without a "Value" is False, The Boolean value of 0 (zero) is false:
var x = 0; Boolean(x); // returns false
What will the following code return:Boolean(x!=="5") if x=5?