Tell us what’s happening:
I really don’t get it… I understood the idea, I pushed to the end 7 VIII 9 and at the begining I 2 III
This code should pass right? Is there a logic or something I missed?
Thanks for the help.
Your code so far
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']));
Your browser information:
User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36
.
Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-data-structures/add-items-to-an-array-with-push-and-unshift