Abdessalam Benharira a passionate JavaScript developer

Latest posts

Create an interactive CLI menu with Node.js

I have recently had to create an interactive menu for a project. I started programming it in bash and to tell the truth I quickly felt limited when I ...

Loading script asynchronously as a Promise in JavaScript

In most projects, an external library must be used (e.g. YouTube Player, Google Maps…), so the idea is to create a function to load the script asynchr...

Wrap an element with custom createElement in JavaScript

createElement function creates a wrapper element from a string. wrap function uses it to easily wrap a given element arround the wrapper string. The g...