Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
学ぶ Constant 1/3 | Data Types and Variables
Introduction to JavaScript
セクション 3.  9
single

single

bookConstant 1/3

メニューを表示するにはスワイプしてください

What are Constants?

Constants are created just like the var and let. We use the const keyword for initializing constants, for example.

12
const NUMBER = 58; console.log(NUMBER);
copy

Variables declared with const are very much similar to the variables declared with the let keyword, but the only difference is that we cannot reassign values to the variables declared with the const keyword.

123
const PI = 3.141592653589793; PI = 3.14; // error console.log(PI);
copy
タスク

スワイプしてコーディングを開始

Declare a variable by using the const keyword with the identifier FIXED and assign the value 10 to it also display the value on the console.

解答

Switch to desktop実践的な練習のためにデスクトップに切り替える下記のオプションのいずれかを利用して、現在の場所から続行する
すべて明確でしたか?

どのように改善できますか?

フィードバックありがとうございます!

セクション 3.  9
single

single

AIに質問する

expand

AIに質問する

ChatGPT

何でも質問するか、提案された質問の1つを試してチャットを始めてください

some-alt