Skip to content

Latest commit

 

History

History
16 lines (9 loc) · 562 Bytes

what_paradigm_is_javascript.md

File metadata and controls

16 lines (9 loc) · 562 Bytes

What paradigm is JavaScript?

JavaScript is a multi-paradigm language, supporting functional, object-oriented, and imperative programming styles. It allows you to write code in a variety of styles depending on the needs of the application.

Example of functional style:

let add = (a, b) => a + b;
console.log(add(2, 3));  // Output: 5

Tags: intermediate, JavaScript, Programming Paradigms