ES2015に関するhc0001のブックマーク (1)

  • ECMA Script 6 Quiz

    ECMAScript 6 Quiz by @mxwllt WARNING This quiz is subject to dirty tricks. Do not trust the speaker. But don't be scared to answer. var/let/const What's the output? const KEY = 'white_rabbit'; if (true) { const KEY = 'ginger_rabbit'; } console.log(KEY); white_rabbit What's the output? let x = 42; if (true) { let x = 1337; } console.log(x); 42 What's the output? let x = 42; if (true) { console.log(

    hc0001
    hc0001 2015/10/19
    ES2015の各種機能の細かい振る舞いをクイズ形式で解説
  • 1