Check if a cell is defined

You may already be getting tired of this discussion, but I’d still like to follow up with another question. :slight_smile:

In your example above, what are the problems that the presence of this line creates?

  1. Too much guidance/handholding, because students should add the cells by themselves?
  2. Having undefined as initial value may be confusing to JS/programming beginners?
  3. 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
2 Likes