How To Use Number Object Constructor Property In Java Script

In this article I am going to explain about Number Object Constructor Property In JavaScript.
  • 1923

Use Constructor Property in JavaScript

When we create a number object property then this prototype it will be return the function.

The number object constructor property its return function number.

All browsers support number object constructor property.

Syntax

number.constructor

Example

<!DOCTYPE html>

<html>

<body style="background-color:red">

 

<script type="text/javascript" >

 

    var num = new Number(345);

    document.write(num.constructor);

 

</script>

 

</body>

</html>

Output

op1.jpg

Further Readings

You may also want to read these related articles :here

Ask Your Question 

Got a programming related question? You may want to post your question here

Programming Answers here

Categories

More Articles

© 2020 DotNetHeaven. All rights reserved.