@king-oldmate
Posted
Well done. Looking at your code, we pretty much did the same thing. To load to a separate HTML file wouldn't even work, since the JavaScript would reload and you would lose your variable. No, part of the point of these easier exercises is to develop components, and those should be as contained (encapsulated) as possible.
Marked as helpful
@wmartyr
Posted
@king-oldmate Hi King, Thanks for the feedback. You're right about the variable. I never thought about it as I was planning if I should create a separate html file or not. That would be something I will keep in mind next time during the planning stage. Cheers.