Moron Test Complete

Problem Set Test your scenes.js file against v5 Make any adjustments needed to get your code working (for example add color variables if you wish) If you’re adventurous consider playing with v6beta of the code which adds scene[level].start and scene[level].finish methods. There’s a number of other changes from v5 in there to grapple with, but if you’re up for learning how to …

Continue reading “Moron Test Complete”

Moron Test v5

v5.js How does the new main function access the values of icon and i? How are those values passed from the moment created in the event listener to the scene level object’s main function? FYI this is an example of “closure.” Closure is the passing of variable values from an “outer” function to an “inner” […]