セクション 1. 章 60
single
Challenge: Practicing `pop` & `shift`
メニューを表示するにはスワイプしてください
タスク
スワイプしてコーディングを開始
You are given an array named items:
["Apple", "Banana", "Orange", "Grape", "Mango"]
Your tasks:
- Use the
pop()method to remove the last element. - Then use the
shift()method to remove the first element. - Make sure
pop()is executed beforeshift(). - Return the updated array.
解答
すべて明確でしたか?
フィードバックありがとうございます!
セクション 1. 章 60
single
AIに質問する
AIに質問する
何でも質問するか、提案された質問の1つを試してチャットを始めてください