LoginSignup
10
10

More than 5 years have passed since last update.

ES6 クイズ

Last updated at Posted at 2015-04-15
var a = 1;
if (a => 2) {
 console.log('bigger');
} else {
 console.log('smaller')
};

// bigger

すでに何人か引っかかったので。

もう 1 パターン追加。

var a = 1, b = 2, c = 3, d = 4;
var f = a => b ? c: d;

// f = ?
10
10
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
10
10