boolean in JavaScript

JavaScript Boolean

JavaScript Boolean is an object that represents value in two states: true or false. You can create the Java Script Boolean object by Boolean() constructor as given below. The default value of Java Script Boolean object is false. Boolean Example: JavaScript Boolean Properties constructor : returns the reference of Boolean function that created Boolean object. prototype : enables you to add properties …

JavaScript Boolean Read More »