InterviewSolution
Saved Bookmarks
| 1. |
What Is Javascript Boolean Object? |
|
Answer» The Boolean OBJECT represents TWO values, either "true" or "false". If value parameter is omitted or is 0, -0, null, false, NaN, undefined, or the empty STRING (""), the object has an initial value of false. SYNTAX: Use the following syntax to create a boolean object. var val = new Boolean(value); The Boolean object represents two values, either "true" or "false". If value parameter is omitted or is 0, -0, null, false, NaN, undefined, or the empty string (""), the object has an initial value of false. Syntax: Use the following syntax to create a boolean object. var val = new Boolean(value); |
|