Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

5.1.1. Boolean Values¶

/*The values true and false are not strings. If you use quotes to 
surround booleans ("true" and "false"), those values become strings.*/

console.log(typeof true);
console.log(typeof "true");

//boolean
//string
Source by education.launchcode.org #
 
PREVIOUS NEXT
Tagged: #Boolean
ADD COMMENT
Topic
Name
3+4 =