freeCodeCamp / LearnToCodeRPG

A visual novel video game where you learn to code and get a dev job 🎯
https://www.freecodecamp.org/news/learn-to-code-rpg-1-5-update/
BSD 3-Clause "New" or "Revised" License
1.06k stars 110 forks source link

Wording of quiz question about .querySelector #66

Open parent-tobias opened 2 years ago

parent-tobias commented 2 years ago

What bug did you encounter?

in quiz_questions_from_csv.rpy, the question "What is the name of the method used to find elements that match one of more selectors?' is a bit misleading and awkward.

A better wording might be "What is the name of the method used to find the first element in the DOM to match a given CSS-style selector?"

document.querySelector takes a selector, or even a complex multi-selector, but only returns the first element to match.

Steps to Reproduce

https://github.com/freeCodeCamp/LearnToCodeRPG/blob/dfe67a20f3536f52ccc0336c9e7c39091d6c2c22/game/tl/english/scripts/quiz_questions_from_csv.rpy#L8203

Screenshots

No response

Additional Information

No response