Instruction sais: #breakfast input[type=‘number’], but this will not pass. I changed it to: ‘#breakfast input[type=number]’ and it passes.
It really helps if you post a link to the Step and your full code. Thanks
Hi @HanB
Not using quote marks for the selector is causing an error in the console.
SyntaxError: unknown: Private names are only allowed in property accesses (
obj.#breakfast
) or inin
expressions (#breakfast in obj
). (38:58)
36 | e.preventDefault();
37 | isError = false; >
38 | const breakfastNumberInputs = document.querySelectorAll(#breakfast input[type=‘number’]) | ^
39 |
40 | }
41 |
The editor is also showing red squiggly lines indicating a syntax error.
Happy coding
Thanks, I understand now that there are more ways to write it with nested quotes.
1 Like