DEV Community

Jasterix
Jasterix

Posted on

5 JavaScript OOP concepts you should know

A few weeks ago, I started this series on JavaScripts concepts new developers should try to understand.

This post will focus on OOP concepts that you might come across while learning about classes and object oriented programming. Instead of summarizing these concepts from various sources, I'll try to explain them in plain English and provide a source for learning more.

OOP Concepts to understand

  1. Hoisting- a process where JavaScript allocates space in memory for your variables. Hoisting doesn't mean that your variables get moved to the top of your code. Instead they declared as undefined
  2. Prototype- a property that JavaScript function has access to. It points to an object
  3. This- a keyword that denotes the execution context or scope of a function or object

Of course, there's more to understand about these 3 concepts, especially when it comes to this this.

Top comments (3)

Collapse
 
fchienvuhoang profile image
chien vu hoang

Thanks!

Collapse
 
jasterix profile image
Jasterix

Hi! Check back in later. I hit publish instead of save!

Collapse
 
jasterix profile image
Jasterix

Hi I just realized that the date is showing up as Dec 19. Can you please confirm that you wrote this comment before midnight?

This would be a huge help for explaining this to Flatiron. They require that all grads publish at least one blog each week and there would be no way for me to prove otherwise.