How to Implement Stack Data Structure in JavaScript

On this article, I’ll show how to implement Stack data structure in JavaScript focusing on how simple it is and how it works. What is Stack? It’s a data structure based on the principle LIFO (Last In First Out), which means the last item in will be the first item out of Stack. The items recently added to Stack are located near the top and the oldest near the bottom of Stack....

December 6, 2020 · 3 min · Helder Burato Berto

Simplify JavaScript Arrays

In this post we’ll cover some methods of JavaScript that will make it easier for you to work with arrays and write more elegant codes. Let’s define our arrays const beers = ["Heineken", "San Diego", "Coruja", "Saint Bier"]; const ages = [20, 25, 19, 21, 42]; We created two arrays, where we will use methods that we will understand next. Desmystifyng some incredible methods! Now that you’ve created the arrays you need yo work on, let’s put your hand in the dough and check the results with some very interesting methods....

June 18, 2019 · 4 min · Helder Burato Berto