boolean data type | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

boolean data type

what is the default value of boolean in javascript?

11th Oct 2017, 6:24 AM
Yuvarajan N
Yuvarajan N - avatar
1 Answer
0
Because you use var instead of int, boolean, etc, you have to assign a value to it first, because your code won't know that it shall be an boolean
11th Oct 2017, 6:43 AM
Jonas Schröter
Jonas Schröter - avatar