How to remove a specific item from a Javascript array

How would you go about removing a specific element from an array using vanilla Javascript? There’s probably multiple ways to solve this trivial problem. Here’s how I would remove the element “apple” from the following array. let arr = [“oranges”, “banana”, “apple”, “mango”, “watermelon”]; 1. Find the index corresponding to the “apple” element using the […]

How to reverse a string containing complicated emojis

Essentially what the title says. How on earth do we reverse this string? Hello world12πŸ‘©β€πŸ‘©β€πŸ‘¦β€πŸ‘¦3πŸ•βœ“ Before we get into that, lets look at how we can reverse a plain old ‘Hello, World’ string. For most of you out there, this task should be fairly trivial and might look something like this. 1. Split the string […]

CouchDB: Document Conflicts

Three years ago, if someone asked me what couchDB was, I’d probably tell them it was some fancy piece of furniture. But that is three years ago, and since then, I have started a career, got married, learnt a few things, and most importantly realized that couchDB has nothing to do with furniture. CouchDB is […]

How does Javascript work in the browser?

You really don’t need to know a lot to get up and running with Javascript. In fact, a fully-fledged production-ready app could be built without ever understanding the inner workings of the language. This is both a blessing and a curse; The language has many adopters, but only a very few masters. This realization lead […]

NGINX Reverse Proxy for Node.js app

There are probably a million ways to set up your node.js application on a remote server. I know because I have been down the rabbit hole looking for answers for this seemingly simple task. While I believe that there is no β€œright” or β€œwrong” way to go about this, my current go-to approach to set […]