♦ Boolean in JavaScript
♣ Example3: Boolean in JavaScript
Boolean data type used to store boolean variable, i.e, true or false.It stores value true if the statement is true and stores false if the statement is false.
In this example, Boolean data type is illustrated.
Example
Input:
Output: