A JavaScript Coding Challenge

I am sure that most of you are familiar with the game of bowling, mostly often played with ten pins. Today the local bowling alley needs our help and has tasked us with creating a function called bowling score. And you might have guessed it, but our bowling score function will need to return our bowler’s numerical score. To get this score we will be provided an array that represents the players ten frames. …


A beginner’s guide to declaring variables

In JavaScript, we have three options available to us when we want to declare a new variable. For a quick refresher, we use variables as a container for storing values or data. This could range from a number to a string, or an array to even a whole function. We are going to start small so we can learn the differences, and similarities, our declaration statements have. Let’s jump right into it.

Var

This may seem somewhat obvious to some of you, but var actually stands for variable. This was one of the original ways to declare a variable when…


Setting your own terms

What is a conditional statement? Well, conditional statements allow us to create a condition that will equate to either true or false. Should our conditions prove to be true, we can then choose to do something to our data. On the other hand, should our conditions prove to be false, they would be excluded from that something happening. But I would not count them out just yet as we are able to create multiple conditional statements to fit our functions needs. Let’s jump right into it.

If Statement

The most common conditional statement as a developer that you will likely…


What are our options?

Even if we stick to JavaScript’s basic loops, we still have quite a few options available to us. This can vary based upon our goals but can ultimately come down to your own personal style or preference when coding. A loop, no matter how it is constructed, will always be a loop. To review before we jump right into it, we create loops so that we can repeatedly do something. This could range from manipulating a whole data set to simply just trying to find if a match exists in the data set. …


An intro to time complexity and why it matters

Just before or after learning about algorithms, I am sure that you have at least heard mentions to take time complexity or Big O notation into consideration. Especially when dealing with very large or complicated data sets. But what is time complexity and Big O, and why should I care?

What is time complexity?

Each and every algorithm that we create takes a certain amount of time to run or complete. Pretty obvious right? But looping through an array of 10 items will complete a whole lot faster then say an array of 10,000 items. This is our simple introduction…


A beginners guide to Algorithms in JavaScript

While the word may seem somewhat alien and even intimidating to some if you are just getting your feet wet. But do not worry, we use algorithms to help ourselves and even use them in our daily lives without even knowing it. I am not referring to the devices or applications you connect with daily, but you as a person. Let’s jump right into it.

What is an algorithm?

The way that I was taught how to better understand algorithms is to think of them like making a grilled cheese and that is not too far off from the truth…


What else can JavaScript do for you and your array’s?

Welcome back to part II of our JavaScript array methods review. As promised in part I, this is where we will be tackling the big 4; filter, for each, map, and reduce. I like to think of them as the big 4 because no developer should be without these methods when faced with array/s of data. If you have already become somewhat familiar with these methods, for each may seem like the odd one out of the bunch. If this is all new to you do not worry as we will be fulling covering this method as well as for…


What can JavaScript do for you and your array’s?

The answer is quite a bit actually. JavaScript has 30 plus built in methods for arrays that make our life a little easier as developers. Almost all of these built-in methods can help save us time by not only making arrays easier to navigate, but by simply using these methods to achieve our goals. Granted that there is such a built-in method to do so, otherwise you could need to do a little extra leg work but that is what we work towards. Solutions.

If you are brand new to arrays, I would suggest that you take a look at…


A beginners introduction to arrays in JavaScript

What is an array?

An array, according to Merriam-Webster definition #2, is `to set or place in order’(a) or `to set or set forth in order (something, such as a jury)’(b). For being such a general definition of an array these two get us awfully close to understanding what an array is in JavaScript. A more technical definition is that an array is a list style object where multiple values can be stored within a single variable. Those values can be any type of data such as a string, a number, or a Boolean.

An array is not limited to…


A beginner’s guide to primitive data types in JavaScript

Photo by Jonathan Borba from Pexels
Photo by Jonathan Borba from Pexels

It is very possible, even if you have just begun exploring JavaScript, that you have already started using or at the very least seen a primitive data type. In this article we will take a deeper look at what a primitive data type is as well as the six JavaScript has; a BigInt, Boolean, Number, String, Symbol, and undefined. Let’s not waste anymore time and jump right into it!

What is are primitive data types?

Before we get into the nitty gritty of the various data types let’s quickly discuss what primitive data types are. By definition, according to Mozilla’s

Kevin Glasgow

Full Stack Software Engineer | Passion for Frontend and Design | Dirt Rider & Snow Glider | www.linkedin.com/in/kevin-glasgow/

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store