JavaScriptの変数の基本を初心者向けにわかりやすく解説し、var・let・constの違いとそれぞれの役割を整理します。スコープや再代入の可否など、なぜ3種類の変数が存在するのかも実践的に理解できる内容です。現役エンジニアの視点から、つまずきやすいポイントを丁寧に解説します。
Nowadays JavaScript has three different keywords to declare a variable — var, let and, const. Each has its own properties and particularities. Let’s start by making a simple comparison table of the ...