DEV Community

Discussion on: Is JS an OOP Language?

Collapse
 
spic profile image
Sascha Picard • Edited

Nope, JS is not limited to OOP. I can do functional programming since functions are first class objects. Meaning they can be

  • stored in a variable, object, or array,
  • passed as an argument to a function and
  • returned from a function

Furthermore RxJs implements Observables, which allows reactive programming.

Collapse
 
jwp profile image
John Peters • Edited

Thanks Sasha, I've updated the article to reflect your input.