Understand the Difference Between Pure and Impure Functions in JavaScript

Today, I am going to explain what is “pure” and “impure” in JavaScript.

1- Pure Function:

2- Impure Function:

That’s it :)

Thank you for reading……

Just kidding, let me explain few things:


Look at this example and tell me what is the output of calling add function with…

Hello :)

Today’s topic is JSX.

JSX is an abbreviation for (J)ava(S)cript (X)ML.

Don’t worry. You don’t need to know what is XML to use JSX, and you don’t need to download anything because it is included with React.

JSX is a “syntax extension” that allows you to write HTML…

Abdo Amin

Front-end web developer and graduate student from Microverse.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store