Odd Occurrences In Array

Lately I have been doing a lot of code challenges and exercises. It is a great way to improve your coding abilities, but also to make better decisions. There are often concise way to do things and one challenge in particular was a good example of this. Lets set the scence. You have an array […] Read more

How to Setup a Typescript Project

Before we can set up a TypeScript project, we first ensure that  Node.js and NPM are installed. Head over to the node.js download page and select the relevant package and follow the on-screen instructions. Note: I am using a Mac for this tutorial, but it’s the same for Windows 10. I am also using Visual […] Read more

JavaScript Function Statements vs Function Expressions

JavaScript function statements and function expressions are two ways you can write a function in your JavaScript code, but what is the difference? JavaScript is executed synchronously (line by line) however if you came across a snippet of code like this, you might think the function will not be executed because the code is executed […] Read more

JavaScript Primitives Types

JavaScript has 6 primitive data types (a primitive type is data that is not an object) which lets the JavaScript engine differentiate between different categories of data and they are as follows. string number boolean undefined null symbol (new in ECMAScript 2015) String // Strings “Hello World with double quotes” ‘Hello World with single quotes’ “28” // see […] Read more

JavaScript Array Types

JavaScript arrays come in different forms and this post will explain what the difference is between each array type. This post will look at the following array types; Homogeneous arrays Heterogeneous arrays Multidimensional arrays Jagged arrays Homogeneous Arrays As the name may suggest a homogeneous array is an array that stores a single data type(string, […] Read more