Annie, coding scripts requires a shift in thinking: we have to think as stupidly as a computer. They can’t see what we see. They don’t know what the end result is supposed to be. Scripts do EXACTLY what we tell them, no questions asked, and if we tell them to do something wrong, they will just do it.
In your example, what was the element that needed adjusting to get what you wanted?
Get ready for tomorrow’s lesson. All those inputs that you get from the user will now be put to use! It will be fun!!!