JavaScript community news log

×

Daily JavaScript community news and chat

A RubyFlow-inspired community news site for JavaScript and related technologies.

Anyone can post news to be seen by the community (and maybe selected for JavaScript Weekly!)

Tricky JS Quiz

var length = 5;
var getTotal = function(){ return this.length; } var obj = { length:7, elements:[] }; obj.elements.push(getTotal); var o = obj.elements0; console.log(o);

Comments

And what’s unusual?

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in