Tuesday , 16 January 2018

Prototypes – JavaScript Tutorial

Prototypes in JavaScript can get very complex. There’s a lot to go over. In this tutorial, we’ll only talk about the basics and it’s use for creating methods or properties after the creation of the object. Whenever you drive a car, the amount of mileage goes up. So, let’s create a property that will hold the mileage and create a …

Read More »
Creating Properties and Methods

Creating Properties and Methods – JavaScript Tutorial

In this tutorial, we will be working with the Car class we created in the last tutorial. You’ll learn how to create properties and methods. Creating properties and methods in JavaScript is relatively simple. Creating A Property As previously discussed, a property is just a variable for an object. Creating a property in an object is different than creating a …

Read More »
Creating Objects

Creating Objects – JavaScript Tutorial

Object oriented programming is a style of programming. JavaScript will read your code from top to bottom and execute it in that order. This is what’s called procedural code. Object oriented programming doesn’t work this way. Instead, it’s built on the concept of “objects”. For the most part, object oriented programming is viable for advance or large projects. It helps …

Read More »
Math Object

Math Object – JavaScript Tutorial

The math object is another object you’ll find yourself using often. It allows you to perform advance math operations. It can really save you time and you don’t have to write as much code. Math Object Properties Let’s get started. Clear your script and add this bit of code. [crayon-5a5dde24243e1576630934/] You do not have to create an instance of the …

Read More »
Date Object

Date Object – JavaScript Tutorial

The date object is a very special object. It allows you to grab the current time and date. It also allows you to manipulate the time and date easily. Let’s take a look at how useful the date object can be. In order to use the date object, you have to store the instance of the object inside a variable. …

Read More »
String Object

String Object – JavaScript Tutorial

The string object is another object built in by JavaScript. Whenever you create a string, JavaScript will automatically give it the properties and methods of a string. To clarify a few things, you can sometimes access an object directly without having to create a variable. We saw how to do this with the number object, but with the string object …

Read More »
Number Object

Number Object – JavaScript Tutorial

So we’ve talked about objects in general and we discovered a new object called the document object. JavaScript comes with built in objects that you can use. In this tutorial, we take a look at the number object. Number Object Properties Just like other objects, you can access the properties and methods of the number object. Let’s take a look …

Read More »

Objects – JavaScript Tutorial

Object oriented programming is a topic for intermediate programmers. It can be a very confusing and discouraging topic. JavaScript utilizes objects often so learning about OOP (object oriented programming) early is important. I won’t be going in depth in OOP until later tutorials, but for now, I’ll be covering the basics and what you need to know. What are Objects? …

Read More »
Manipulating Loops

Manipulating Loops – JavaScript Tutorial

There will be a time where you’ll want to break out of a loop early or skip an iteration. Manipulating loops is possible in JavaScript. It’s actually very easy to do with conditional statements. Let’s clear our script and update our code to this. [crayon-5a5dde24262db931483388/] Manipulating Loops This is the exact example we used in our while loop tutorial. Let’s …

Read More »
Do While Loop

Do While Loop – JavaScript Tutorial

A do while loop is a special kind of loop. It’s a variation of the while loop, but with a special addition. Let’s learn how to use a do while loop. Creating A Do While Loop Clear your script and update your code to this. [crayon-5a5dde2426887619220529/] You’ll notice everything is the same in our last tutorial, except our loop is …

Read More »
While Loop

While Loop – JavaScript Tutorial

We’ll be continuing with loops by learning about the while loop. The while loop is another way of looping through a block of code while a certain condition is true. Before we get started, let’s talk about iterations for a second Iterations An iteration is the technical term for a process that repeats itself. In the programming world, every time …

Read More »
For Loop

For Loop – JavaScript Tutorial

Loops are essential to know in JavaScript programming. Loops allow you to run the same block of code until it is broken. You could use a function and just call it again and again to run the same block of code, but a loop doesn’t need to be called to run continuously and you can manipulate how many times you …

Read More »
Switch Statements

Switch Statements – JavaScript Tutorial

Switch statements are similar to if statements. They allow you to check if a certain condition is true and then execute a certain block of code accordingly. Let’s take a look at how to create switch statements. Creating Switch Statements Clear your script and add this bit of code. [crayon-5a5dde2427e13096900060/] We have a variable named num and it’s value is …

Read More »
Logical Operators

Logical Operators – JavaScript Tutorial

In this tutorial, we’ll be discussing what logical operators are. Logical operators allow you to define multiple conditions in one conditional statement. Let’s see how to do this. Using Logical Operators Clear your script and add this bit of code. [crayon-5a5dde2428372011799609/] Let’s focus on the if statement here. You’ll notice we have a && also known as a double ampersand. …

Read More »
Conditional Statements

Conditional Statements – JavaScript Tutorial

In this tutorial, we’re going to discuss what conditional statements are. In certain situations, you may want to perform some checks and respond accordingly. Let’s take a look at how to do this. Using Conditional Statements Conditional Statements are pretty easy to use. Clear your script and insert this bit of code. [crayon-5a5dde2428a35082042215/] Let’s see what happens by opening our …

Read More »
Want to learn how to create web applications with Node.js and SQL? Check out my course!
Get 93% off my course. You'll also learn how to build real world applications using Node and SQL. This is a limited time offer
Yes, I would like to get 93% off your course!
No Thanks!