Javascript examples for Number:constructor
In JavaScript, the constructor property returns the constructor function for an object.
<!DOCTYPE html> <html> <body> <p id="demo"></p> <script> var num = 1.5;// w ww . j a va 2 s . com document.getElementById("demo").innerHTML = num.constructor; </script> </body> </html>