プレイ回数
1,005
用語一覧(85件)
const
const
定数
let
let
変数
var
var
変数
function
function() {}
関数
アロー関数
() => {}
this
this
this
async
async
async
await
await
await
ジェネレーター
function* () {}
yield
yield
class
class
constructor
constructor
import
import * as x from
export
export
console.log
console.log
Number関数
Number
String関数
String
for
for (let i = 0; i < N; i++) {}
while
while (true) {}
do while
do {} while (false)
Symbol
Symbol
テンプレートリテラル
`Hello${world}`
文字列1
'Hello, World!'
文字列2
"Hello, World!"
数値
123
小数
1.23
BigInt
1n
2進数
0b01
8進数
0o07
16進数
0xff
四則演算
1 + 2 - 3 * 4 / 5
剰余
6 % 7
等号
8 === 9
null
null
undefined
undefined
&&
a && b
||
c || d
Array
Array(n)
[]
[1, 2, 3]
{}
{}
オプショナルチェーン
?.
オプショナルチェーン(関数)
?.()
switch
switch (true)
case
case x:
break
break;
default
default
try, catch, finally
try {} catch (e) {} finally {}
throw
throw new Error('error')
return
return
typeof
typeof x === 'number'
instanceof
x instanceof X
delete
delete a.b
if
if (a) {} else if (b) {} else {}
三項演算子
a ? b : c
オプショナルチェーン(ブラケット)
?.[0]
Null 合体演算子
a ?? 0
+=
+=
-=
-=
/=
/=
%=
%=
{...}
{...x}
[...]
[...x]
function(...)
func(...x)
new
new Class
<=
a <= b
<
a < b
>
a > b
>=
a >= b
*=
*=
>>
x >> 2
<<
x << 2
>>>
x >>> 1
&
1 & 1
|
0 | 1
in
'key' in obj
continue
continue;
debugger
debugger
xor
1 ^ 1
ビット反転
~1
!
!false
super
super()
extends
class extends Date
static
static
正規表現
/\d+/g
module.exports
module.exports

