Whoa.
Hoisting is JavaScript’s default behavior of moving all declarations to the top of the current scope (whether that be global or local).
To quote a Flatiron School Lesson:
Scope is a ubiquitous concept in programming and one of the most misunderstood principles in JavaScript, frustrating even seasoned engineers. Not understanding how scope works will lead to pain.
So I know I say this every time I begin a Portfolio Project, and you would think by the 4th project I would assume that I am going to be pushed way outside my comfort zone and challenged to the point where finishing the project seems impossible, but then there always appears a small light at the end of tunnel when the flow of a project starts to click and you know you can finish this thing.
I am officially a passenger aboard the Rails Train. Honestly, when I started with Rails I didn’t really see the “magic” happening. I had been happy with what I could build in Sinatra. I loved my Sinatra App, and for some reason every aspect of Sinatra just made sense to me.