+ 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 ответ
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