Take a look at the documentation for this function Array.prototype.shift() - JavaScript | MDN if you need arguemnts (the things you put in the parentheses) they would be defined under syntax. Check if you are not using something that shouldn’t be there
That said, the stuff you have written should actually work just fine. It will ignore the excess argument. What is wrong there is the name of the variables, pay attention to naming, computer can only check the values we point it to.
If I tell it to check myCar it will not check yourCar for example