I am new to javascript, please help me with this code, where did I get it wrong?
function magix2(arrangment, figures) {
arrangment.push(figures);
return arrangment.shift();
}
var bum = [26,27,28,29,30,31,32];
console.log("Before: " + JSON.stringify(arrangment));
console.log(magix2(bum, 33));
console.log("After: " + JSON.stringify(arrangment));