セクション 3. 章 28
single
Symbols 2/3
メニューを表示するにはスワイプしてください
Symbol() Function Description:
We can provide a description to the Symbol() function as an optional argument. This description will make our symbols more clear.
The following example creates two symbols: firstName and lastName with values Michael and Clarke respectively:
1234let firstName = Symbol('Michael'); console.log(firstName.toString()); let lastName = Symbol('Clarke'); console.log(lastName.toString());
タスク
スワイプしてコーディングを開始
Create a symbol with the value key and store it in the variable password. Output the result.
解答
すべて明確でしたか?
フィードバックありがとうございます!
セクション 3. 章 28
single
AIに質問する
AIに質問する
何でも質問するか、提案された質問の1つを試してチャットを始めてください