How many data types How to work are there in JavaScript?
Boolean Boolean is the built-in object corresponding to the primitive Boolean data type. JavaScript boolean can have one of two values: true or false. Primitive Valuesvar primitiveTrue = true;var primitiveFalse = false; Boolean Functionvar functionTrue = Boolean(true);var functionFalse = Boolean(flase); Boolean Constructorvar constructorTrue = new Boolean(true);var constructorFalse = new Boolean(false); Boolean If value parameter is … Read more