Turning EVERYTHING into an Object
After all the functions work individually, I create a model object and turn all my variables and functions into object variables and object methods. The model object will take care of my app logic and calculation.
For example.
1 | //Before |
And test out the model object in console to make sure it works. If this part is complete we’re about 60% complete with our app. Here’s my draft 2 github