Remember that “=” is used for assigning a value on the right side of it to a variable name on the left side of it. You are attempting to assign the value of i to newArr.lastIndexOf(x). What you need to review is how to use comparison and logic operators.

Once you figure out what operator to use here, you will not have any console errors, but your solution will still not work correctly. One thing you need to think about is where your return statement should be located. Remember, as soon as you return, you immediately exit the function regardless if a loop was not complete.

Make sure to read my message about where the return statement should be located. When you have that figured out, repost your code here, but make sure to put three backticks on the line before and after your posted code. See below for how to do this.