Brendan Eich was hired by Netscape Communications in 1995 with the task of embedding which programming language into the Netscape Navigator browser?
var bauble = 'red', tinsel = bauble = typeof tinsel
What is the value of tinsel
?
typeof (() => 23)()
What is the result?
var children = ['Mary','Tom','Helen','Paul','Barry'],
r = /(\S).*\1/
var naughtyList = children.filter(name => r.test(name))
Who is on the naughtyList
?
LiveScript was first shipped in beta releases of Netscape Navigator 2.0. When was it later renamed to JavaScript?
function santa() {
return
{
hungry: true
}
}
const x = typeof santa()
What is the value of x
?
"1" - - "1"
What is the result??
const reindeer = ['Dasher','Dancer','Prancer']
reindeer.length = 0
reindeer.push(...['Vixen','Comet'])
What is the value of reindeer
?
function elf(name, age) {
arguments[1] = 22
return age
}
const elfy = elf('Elf')
What is the value of elfy
?
with ((x, undefined) => ['elf','reindeer','tree']) length
What is the result?
(true + false) > 2 + true
What is the result?
var presents = 3,
sack = {}
sack: {
presents: 2
gifts: ++presents
}
sack.gifts + sack.presents + presents
What is the result?
const socks = 1
(new ((socks) => socks)(2))()
What is the result?
var cake = []
cake[0] = 'raisins'
cake[1] = 'brandy'
cake.cooked = true
const quantity = cake.length
What is the value of quantity
?
new String('Santa Claus') instanceof String
What is the result?
In what year did server-side JavaScript first appear?
var forecast = ['ice', 'snow', 'sleet']
'2' in forecast
What is the result?
'This is a string' instanceof String
What is the result?
function sleigh() {
return boots
boots = 10
function boots() { laces = 'tied' }
var boots = 'warm'
}
typeof sleigh()
What is the result?
new Array(5).toString()
What is the result?
String('Chimney') === 'Chimney'
What is the result?
(() => typeof arguments)()
What is the result?
(function () { return typeof arguments })()
What is the result?
10 > 9 > 8 === true
What is the result?
var santa = 'chilly', check, grotto = {
santa: 'missing',
status: check = function() {
return this.santa
}
}
console.log(check(), grotto.status())
What is logged?
NaN === NaN
What is the result?
[] + [] + 'blitzen'.split('')
What is the result?
var cookies = 0
function delivery() {
cookies++
this.cookies = cookies
return delivery
}
var reward = new new delivery
What is the value of reward.cookies
?
Give your answer sheet to a team near you
Take the answer sheet from a different team
Get ready to start marking answers ✅
(note to self: restart quiz and enable answers)