© Russ Ferguson 2019
Russ FergusonBeginning JavaScripthttps://doi.org/10.1007/978-1-4842-4395-4_7

7. JavaScript and Programming Paradigms

Russ Ferguson1 
(1)
Ocean, NJ, USA
 

In this chapter, I will explain some of the different programming paradigms you can use with JavaScript. By programming paradigms I mean the different ways or “styles” in which you can write your JavaScript code.

JavaScript is a flexible language. This chapter will cover two main programming paradigms: object-oriented programming (OOP) and functional programing. In an interview, you may be asked to explain the difference between the two paradigms. In addition, you may find code written by other developers that may fall into one or both of these categories.

Interview Question

Name ...

Get Beginning JavaScript: The Ultimate Guide to Modern JavaScript Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.