<html>
<head>
<script type="text/javascript">
Array.prototype.getUnique = function () {
var o = new Object();
var i, e;
for (i = 0; e = this[i]; i++) {o[e] = 1};
var a = new Array();
for (e in o) {a.push (e)};
return a;
}
function Perform(){
var arr = new Array();
arr[0] = "hello";
arr[1] = "world";
for(i in arr){
console.log(arr[i]);
}
}
</script>
</head>
<body onload="Perform()">
</body>
</html>
The result of above code in console is
hello
world
function()
From where does the last function() come from?