Example
Return the function that created the Array object's prototype:
<script type="text/javascript">
var fruits = ["Banana", "Orange", "Apple", "Mango"];
document.write(fruits.constructor);
</script>
|
The output of the code above will be:
|
function Array() { [native code] } |
Try it yourself »
|