Javascript Quiz Question is technically incorrect

The question asked to make the statement valid. both the comparison and assigning values make the statement “valid”. The code compiles and performs a function with the assigning operator. The question should inquire for a response that could yield the if or the else response depending on the value of coin leading into the conditional.

1 Like

Personally I’d take the “reasonable and cogent” definition of valid here. Sure it technically might execute, but is it (in any possible situation of using = in a comparison) sensible or meaningful? Nah - imo the lesson is fine. It might be syntactically valid but not practically valid, and I think the intention is demonstrably the latter here.

Regardless of my opinion though (hey I’m just some random internet guy, practically my opinion means very little!) it’s best to send any feedback directly to CC customer support, they don’t support or monitor these forums anymore :slightly_smiling_face:

3 Likes

Welcome to one of the most important skills in teaching–learning to ask very precise questions such that there is no way to answer with a technically correct but conceptually incorrect answer. It’s very challenging to do this since language is fuzzy in it’s meaning. For example, these sentences change meaning with tone or punctuation: “That’s great” (sincere or sarcastic), “I’m fine” (well or frustrated), or “You’re going too?”(a question or statement).

As a developer, the most important skill is going to be in requirements gathering. You’ll need to learn to ask questions to pin down exactly what you’re trying to build. Sometimes it’s easier, e.g., within a technical team and they have the language and understanding to be technically specific, and most of the time it’s harder, e.g., non-technical stakeholder asks for something to be made and they don’t even know what they want. Take this question as an example of requirements gathering. Based on the code presented, what is the most likely interpretation of valid code?

2 Likes