You may already be getting tired of this discussion, but I’d still like to follow up with another question.
In your example above, what are the problems that the presence of this line creates?
- Too much guidance/handholding, because students should add the cells by themselves?
- Having
undefined
as initial value may be confusing to JS/programming beginners? - Students may fail to recognize that they are supposed to replace the value?
If it’s 2. or 3., would it help to use a placeholder prompt like the following?
mean_attendees = REPLACE_ME
REPLACE_ME = undefined