Programming Methodologies in JavaScript

Here I compare Object-Oriented Programming (OOP) and Functional Programming, highlighting their fundamental differences. OOP utilizes inheritance and encapsulates data, focusing on "what something is", while Functional Programming emphasizes function composition and immutability, concentrating on "what something has". Both methods have benefits and drawbacks influencing code clarity, maintainability, and memory efficiency.  MORE q

By on April 15th, 2020 in

Strict Mode in JavaScript

Strict mode can be turned on by the developer to run a variant of JavaScript in the browser. This variant uses different semantics to run JS code. Initiating this is as simple as writing: 'use strict'; One use case is as a temporary measure during development to uncover errors that would otherwise fail silently. In addition, if browser support can be  MORE q

By on April 14th, 2020 in

Error Handling & Debugging

JavaScript is decently equipped to get a handle on errors that may arise. The first tool we should know is the Error Object. const myError = new Error('Oh No!'); throw myError.name + myError.message + myError.stack; Built-in Error Objects are numerous. A complete  MORE q

By on March 27th, 2020 in