JavaScript – Objects - Boolean and Number Objects
Posted by: kaizenlog in JavaScript, tags: -, and, –, Boolean, JavaScript, Number, Objects
JavaScript
– Objects - Boolean and Number Objects
JavaScript provides
Boolean and Number objects as wrappers for boolean true/false values
and numbers.
When a JavaScript program
requires Boolean value, JavaScript creates a Boolean object to store
the value.
Programmers create Boolean
objects with the statement:
var b = new
Boolean(boolean value);
|
Method |
Description |
JavaScript creates Number
objects to store numeric values in a JavaScript program.
Programmers create Number
object by:
var n = new
Number(numericValue);
|
Method |
Description |
Popularity: 18% [?]
Welcome to Kaizenlog.com If you're new here, you may want to subscribe to my RSS feed , Twitter You can contact us by using the contact form or submitting a comment. You can also share this post with your friends by clicking on the 'ShareThis' button above. Thanks for visiting!









Entries (RSS)