Friday, April 7, 2017

Uh huh. 'Nuff said.

var X = "key";
var foo = {X:2};
var bar = {[X]:2};
console.log( foo );
console.log( bar );

No comments:

Post a Comment