Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

JavaScript Number Objects

const a = 45;

// creating a number object
const b = new Number(45);

console.log(a); // 45
console.log(b); // 45

console.log(typeof a); // "number"
console.log(typeof b); // "object"
 
PREVIOUS NEXT
Tagged: #JavaScript #Number #Objects
ADD COMMENT
Topic
Name
6+9 =