AI

Arrays can change size! Use .push() to add to end, .pop() from end, .unshift() to start, and .shift() from start.

Your Task:

  • Create a copy of initialCart called cart
  • Loop through actions
  • Perform the requested operation on your cart
TypeScript Solution
Loading...

Submit your code to see test results