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. Thanks for visiting!








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: 17% [?]

Listen to this podcast Listen to this podcast

Print This Post Print This Post





  • Related Posts



  • Leave a Reply

    Comment moderation is enabled. Your comment may take some time to appear.