How should you prepare for a JavaScript interview?
Prepare in three layers, because interviews test three different things.
The language. Be able to explain, not just recall. Why the plus operator behaves differently from the minus operator. What the temporal dead zone is. How the prototype chain resolves a property. Why an arrow function has no this. If you can explain the reason behind a rule, you will not forget it, and you will be able to reason about the rules you have not met yet.
Problem solving. The array and string manipulation drills, done out loud, on paper or a whiteboard, without a reference. The goal is not memorising a solution but practising the loop of reading a requirement, checking the edge cases, and choosing a data structure. Doing twenty small problems in that loop is worth more than reading three long tutorials.
Your own code. Be ready to talk about two projects in depth. What the problem was, what the constraints were, what you built, what went wrong, and what you would change. Interviewers ask follow-up questions precisely to see how deeply you know your own work, and a project you cannot explain in detail is worse than no project at all.
On the day, ask what the interviewers care about and follow their lead. Write code out loud as you think, because the interviewer is usually grading your reasoning rather than your typing. And when you are stuck, say what you know and what you would check, because that is exactly how you would debug it at work.