new object override JavaScript

by Mohan 2012-09-20 23:05:01



new object override
JavaScript 1.5
function foo() {

return new Array(5,6,7);
}

var bar = new foo();
bar.length // is 3




Tagged in:

744
like
0
dislike
0
mail
flag

You must LOGIN to add comments