showing results for - "5 1 2 boolean conversion c2 b6"
Mickael
21 Sep 2017
1/*As with the number and string data types, the boolean type also has 
2a conversion function, Boolean. It works similarly to the Number and 
3String functions, attempting to convert a non-boolean value to a 
4boolean.*/
5
6console.log(Boolean("true"));  //true
7console.log(Boolean("TRUE"));  //true
8console.log(Boolean(0));  //false
9console.log(Boolean(1));  //true
10console.log(Boolean(''));  //false
11console.log(Boolean('LaunchCode'));  //true