セクション 2. 章 8
single
Challenge: Perform Array Operations
メニューを表示するにはスワイプしてください
タスク
スワイプしてコーディングを開始
- Create an array named
myArraywith the given data:["Heine", 25, "Bob", 16]. - Remove the last element,
16, from the array. - Add a new element with the value
21to the end of the array. - Replace the second element with the value
27using indexing. - Print the updated array to the console.
The output should be :
Heine,27,Bob,21
解答
すべて明確でしたか?
フィードバックありがとうございます!
セクション 2. 章 8
single
AIに質問する
AIに質問する
何でも質問するか、提案された質問の1つを試してチャットを始めてください