Error messages mistake

For some reason, every time I get the code wrong, the error message does not say the correct thing. For example, if I have to make a variable called elementId using const and set it to a string, but I accidentally set it to an array, but everything else is correct, it says I need a variable called elementId. Is there a fix or is this just a bug?

And if I have to use document.getElementById(“id-name“) but forget the quotation marks, it says the same thing.

Can you link the challenges you are talking about? there may be a way to make the tests more clear, but there could also not be, it depends on many things

you can always share your code with the HELP button if you need help

The test is just an automated test. The feedback is based on what the test is checking. You need to make sure the test passes and the feedback should give you a clue as to where the problem is.

You also need to check the related User Story to make sure you’ve implemented it correctly.

The tests cannot check for every possible variation of error and give specific feedback of what to fix. Just think of them as a starting point for investigation.