Add Items to an Array with push() and unshift() FUNCTION

PHOTO EMBED

Thu Jan 05 2023 20:49:27 GMT+0000 (Coordinated Universal Time)

Saved by @abdishakur #javascript

function mixedNumbers(arr) {
  // change code below this line
  arr.unshift("I", 2, "three");
  arr.push(7, "VIII", 9);
  // change code above this line
  return arr;
}

// do not change code below this line
console.log(mixedNumbers(["IV", 5, "six"]));
content_copyCOPY

https://forum.freecodecamp.org/t/freecodecamp-challenge-guide-add-items-to-an-array-with-push-and-unshift/301151