The value of this is based on the context in which the keyword is called. Outside of a function, this refers to the global object (a.k.a the window if in a browser). However, inside and object method, this refers to the object. Inside a standalone function or a callback function, this will be global or undefined.
Javascript and I did not get along well at first. I missed the simplicity and format of Rails. So I dragged my feet to begin the project.
My brain was far more erratic when starting the rails project compared to my previous projects. I wasn’t sure exactly what I wanted my app to be, and even when I decided that, I couldn’t nail down the perfect model structure. At first I wanted routines and members to have a many-to-many relationship.
I was actually impressed at the speed and understanding I had of the material while working on my Sinatra project. It came together rather quickly and I knew the logic behind each step.
An empty screen is terrifying. Oh, okay, I’ll just run ‘learn’ to get me going. Oh wait…can’t do that either. Hmm…talk to a technical couch on Ask a Question? Nope…not that either.