5 1 1 boolean values c2 b6

Solutions on MaxInterview for 5 1 1 boolean values c2 b6 by the best coders in the world

showing results for - "5 1 1 boolean values c2 b6"
Angelo
10 Feb 2017
1/*There are only two boolean values---true and false. JavaScript is 
2case-sensitive, so True and False are not valid boolean values.*/
3
4console.log(true);
5console.log(typeof true);
6console.log(typeof false);
7
8//true
9//boolean
10//boolean
Thiago
01 May 2017
1/*The values true and false are not strings. If you use quotes to 
2surround booleans ("true" and "false"), those values become strings.*/
3
4console.log(typeof true);
5console.log(typeof "true");
6
7//boolean
8//string