LoginSignup
0
0

More than 5 years have passed since last update.

【JavaScript 】constに関する注意点

Posted at

constに関する注意点

'use strict';

// 値の変更はできる
const xyz = [10, 20, 30];
xyz[2] = 40;
console.log(xyz); // [10, 20, 40]

// 値の再代入はできない
xyz = 50; // Error

※Google Chrome で確認
※ES8

0
0
1

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
0
0