Viewing: JavaScript

How to Setup a Typescript Project

Before we can setup a TypeScript project we first need to ensure that  Node.js and NPM are installed. If you don't have them 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 the purpose of this tutorial, but […] 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) // Strings "Hello World with double quotes" 'Hello World with single quotes' "28" // see note […] Read More

JavaScript 101- Fundamentals

As a developer learning new skills is a necessary part of self improvement as well as a great way to diversify your skill set. Different programming languages open different doors and depending on the task at hand you may need to call upon a variety of different languages to achieve a specific set of goals. […] 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 As the name may suggest a homogeneous array is an array that stores a single data type(string, int or […] Read More