“It is easy to shoot your foot off with git, but also easy to revert to a previous foot and merge it with your current leg.”
— Jack William Bell
While working through Launch School, you will end up working on games such as Rock Paper Scissors, Tic-Tac-Toe, and other similar projects. That wonderful moment finally arrives when your code is working as it should and you can happily move on to the next lesson. Then you see that you have to add some bonus features to the game. OK, that sounds like fun.
Inevitably, you start to add new…
The idea behind the
this keyword is that when you invoke a method that contains the
this keyword in its body,
this points to an object and tells the method where to look to find the properties needed in the method. The value of
this can also be referred to as the execution context of a function or method.
What you need to know:
thispoints to the global object.
What do I mean by this? Well, duck typing means that if two or more unrelated objects respond to the same method name, they are all ducks. Even if they aren’t. …
An object’s prototype is the object that an object inherits or descends from. In the following diagram the object
son descends from
father , so
father is the prototype of
son. That means the hidden
[[Prototype]] property of
son points to
Let’s examine each of these points in more detail.
Disclaimer: The information in this article is information that I have learned from Launch School, MDN, and this excellent video by a Launch School student called Ryan Schaul. I am a student at Launch School and I wanted to write an…
First of all, a bit of context. Almost exactly 30 days ago I left my job as an English teacher to begin studying programming full-time. I chose to study at Launch School as I felt that they offered a unique approach that is in line with my way of learning. In the last 30 days, I have logged over 180 hours of focused study.