'constructor' Example : constructor : Object Oriented JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Object Oriented » constructor »

 

'constructor' Example



    
<html>
<body>
<script language="javascript">
function myFunction(){
    var array = new Array('1''2');
    alert(array.constructor)

</script>
<button onclick="myFunction();">Array Constructor</button>
</body>
</html>

    
      
      



-

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo Object Oriented
» constructor