JavaScript Paradigms
A programming paradigm is a way or method in which we write code to solve different types of problems. Since there are a lot of ways to code, there are a lot of programming paradigms that developers use to write code.
JavaScript is a multi-paradigm scripting language, which means that it is very dynamic in nature and supports various types of programming styles, such as object-oriented, imperative, and functional programming. In this book, we will discuss the three main programming paradigms that are popular among developers.
We can divide programming paradigms into two categories:
- Imperative, which includes Procedural Programming and OOP
- Declarative, which includes Functional Programming
In this chapter, we will discuss procedural and object-oriented programming. Functional programming is quite popular, and there are a lot of concepts to learn, so we have dedicated one chapter, named Functional Programming, to cover that topic.
...