Newest Articles

javascript exercises beginners

Randomize the order of members in a JavaScript array

Friday, January 8, 2021

Randomly reordering members of a JavaScript array might seem an easy task, but it can also be difficult to junior developers. See a step-by-step solution with a detailed explanation of how to shuffle an array in JS.

javascript exercises beginners

Get a number randomly from a range of numbers in JS

Thursday, January 7, 2021

Math.random() gives us a range between 0 (inclusive) and 1 (exclusive). But how do we use this method to get a random number from a range of numbers, say, a random number between 30 and 60? Read more to find out...

javascript exercises beginners

Randomly return a true or false from a JavaScript function

Thursday, January 7, 2021

Using the conditional (ternary) operator, we are able to easily return, at random, either a boolean true or false in JS. Additionally, by setting up our condition differently, we can affect the frequency of one result over the other. In this article, we explain how this works.

javascript exercises beginners

Pick a random member from a JavaScript array

Wednesday, January 6, 2021

Multiply the length of array with the call to Math object's random method, then floor the result. We'll explain how that's done in this article.

javascript exercises beginners

Emulate a six-sided dice

Tuesday, January 5, 2021

Use Math.random() static method to emulate a pair of dice in JavaScript, and keep in mind these simple tips.


What to do when met with a tough coding problem

Saturday, December 26, 2020

Got stuck on a tough coding task? Even veteran programmers sometimes experience this. Don't lose your cool: in this article we cover several things to do when you're stuck on a coding problem.

magento beginners

Magento 2 tips and tricks for beginners

Sunday, December 20, 2020

In this post, we list lessons and gotchas picked up while learning Magento 2.

javascript intermediate

Node types in the DOM

Saturday, December 12, 2020

There are 12 node types in the DOM. It's useful to know at least the few of those that are most commonly used.

javascript beginners

Objects vs non-objects in JavaScript

Saturday, December 12, 2020

This article discusses the difference between objects and non-objects in the JavaScript language.

javascript intermediate

Working with onload events in vanilla JS

Saturday, November 28, 2020

Understanding how onload event works in the DOM with vanilla JS is a very important piece of knowledge for a web developer. In this article we'll cover this topic in depth.

Feel free to check out my work here: