Understanding Error Messages in JavaScript

Introduction When I began coding, error messages used to induce fear in me. I was afraid that each message was informing me of a convoluted problem; moreover, I was afraid that I couldn't resolve these problems. Where would I even begin? I eventually calmed down and let my eyes guide me towards a natural starting point: An error message. This observation was enlightening for me. I began shifting my view of error messages as sources of cryptic information to sources
- Understanding Error Messages in JavaScript

Read more

Set in JavaScript

Introduction In computer science, a set is an abstract data structure with the ability to store an unordered list of non-repeating values. One of several data structures, such as an array, can be used to implement a set. In this blog post, I will implement a set with a data structure that has a close resemblance to it: an object. Attributes of a set Here are the defining attributes of a set: An ability to create an empty storage container
- Set in JavaScript

Read more

Singly linked list in JavaScript

Introduction In computer science, a linked list is a common data structure consisting of a sequence of linked nodes. Each of these nodes, unlike an array, occupy a non-contiguous space in memory. Depending on the variant of a linked list, each node in a list can have one reference (singly linked list) or two references (doubly linked list). In this blog post, I will describe and create a singly linked list using JavaScript. Attributes of a singly linked list Here
- Singly linked list in JavaScript

Read more

When to Use Semicolons in JavaScript

Introduction The usage of semicolons in JavaScript is an enigma for many developers. Many of us—especially when we are still learning a lot about the language—will read code that uses them inconsistently. In turn, when we write code in JavaScript, we find that our code works both with and without semicolons. This observation leads us to a logical question: When should we use semicolons? If this question resonates with you, then you will quickly learn that finding an
- When to Use Semicolons in JavaScript

Read more