What does this print (in Node or Chrome)?
console.log([] * 1)
What does this print (in Node or Chrome)?
console.log([''] * 1)
What does this print (in Node or Chrome)?
console.log(['javascript'] * 1)
What does this print (in Node or Chrome)?
function a () {}
var a;
console.log(typeof a);
What does this print (in Node or Chrome)?
function a () {}
var a = 4;
console.log(typeof a);
What does this print (in Node or Chrome)?
console.log([] + 1 + [])
What does this print (in Node or Chrome)?
console.log([] + {})
What does this print (in Node or Chrome)?
function a () { return null }
function b () { return new String("javascript") }
function c () { return ['is'] }
function d () { return '!' }
a.prototype.toString = function () { return "funky" }
b.prototype.toString = function () { return "awesome" }
c.prototype.toString = function () { return "groovy" }
d.prototype.toString = function () { return "fun" }
console.log([new a(), new b(), new c(), new d()].join(' '))