JavaScript Objects The Number Object- Constructor - Javascript Objects

What is JavaScript Number - constructor()?

It returns a reference to the Number function that created the instance's prototype.

Syntax:

The syntax of Number - constructor is as follows −

Return value:

Returns the function that created this object's instance.

Example:

Output:

num.constructor() is : function Number() { [native code] }


All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

Javascript Objects Topics