« first day    last day (19 days later) » 

12:00 AM
Anyway hope that helps. JS scope is hard and takes a long time to get the hang of. I don't know why this is marked as obsolete but it's really helpful: developer.mozilla.org/en-US/docs/Archive/Web/Scope_Cheatsheet
 
12:25 AM
Updated my answer to make the wall of text I've put here a little clearer. If you have specific questions shoot me a message. Good luck.
 
 
22 hours later…
10:15 PM
@PeterBehr Okay there's something I don't understand here: How can I treat a whole JavaScript file as a "library that results in the exposure of a central object"?
@PeterBehr And regarding this message, what is the Game object type? Where should I define it? I'm sure my questions are very silly, but I'm quite new at web development. This is actually my first real website
 
10:40 PM
@PeterBehr What proterties/methods should this "central object" contain?
 

« first day    last day (19 days later) »