Thursday , 17 August 2017
Home / Tag Archives: properties

Tag Archives: properties

Creating a Hapi Server – Node.js Tutorial for Beginners

Creating a Hapi Server

In this tutorial, we’ll learn about creating a hapi server. We’ll also learn about routing in Hapi and how simple it is to set up a server in seconds. Creating A Server Let’s just get right to it. If you haven’t already, clear out your index.js file and add this bit of code. [crayon-5994f5ed07578156984484/] We’re doing a couple of things …

Read More »

Try-catch Statement – Advanced JavaScript Tutorial

Try-Catch Statement

The try-catch statement is a unique way to handle errors. When errors occur, usually it would be logged into the console for you to see. This can be accessed in a variety of ways in different browsers. Usually you’ll find it in the developer section. The try-catch statement allows you to handle errors in your own way. Let’s clean up …

Read More »

Audio – Advanced JavaScript Tutorial

Audio

The video and audio objects both have the same events, properties and methods. So, you already know how to use most of things in the audio object. However, there are a couple of key differences when it comes to formats. Audio Tags To add audio into your document, then you use the <audio> tags like so. [crayon-5994f5ed0a2ef963114514/] Like last time, …

Read More »

Video Events – Advanced JavaScript Tutorial

Video Events

Video events allow you to tap into what’s currently happening with the video. There are a couple of video events, but we’ll only go over the more common ones. Let’s update our <body> tags to this. [crayon-5994f5ed0a899390943352/] We added a button and a place to display the duration and the current time of the video. Let’s update our script to this. …

Read More »

Global Properties – Advanced JavaScript Tutorial

Global Properties

There are 2 global properties you can use to apply to your drawings. This the alpha and composition properties. They can truly effect the outcome of all your drawings. Alpha Clear your script and add this bit of code. [crayon-5994f5ed0aed2761789727/] In the example above, we draw a rectangle with the default settings. Next, we change the globalAlpha property. This property …

Read More »

Inheritance – Advanced JavaScript Tutorial

Inheritance

Another advantage to using prototypes is that you can have inheritance in your scripts. What is inheritance? Well, first let me show you and then I’ll explain. Clear your script and add this bit of code. [crayon-5994f5ed0b468508917359/] Alright, let’s break this done. We have 2 objects. One is BankAccount and the other is SavingsAccount. We add a method to the …

Read More »

Prototypes – Advanced JavaScript Tutorial

Prototypes

Prototypes are a must know for any JavaScript developer. As you may know, JavaScript is classless. Instead, it uses prototypes. However, this subject confuses a lot of people.  In this tutorial, we’ll go more in-depth of what prototypes are. First, we’ll learn how to use them and then why you should use them. Clear your script and add this bit …

Read More »

Multidimensional Arrays – JavaScript Tutorial

Multidimensional Arrays

When you hear the word multidimensional you think of space and time. In programming, it’s far more simpler than that. Multidimensional arrays are just arrays within arrays. Yes, it’s possible! Don’t worry, this tutorial doesn’t have any surprised ;). Let’s clear your script and add this bit of code into it. [crayon-5994f5ed0cf59542893626/] I create a variable named people and insert …

Read More »

Associative Arrays – JavaScript Tutorial

Associative Arrays

Today’s tutorial comes with a little surprise. Today, we’ll be talking about “associative arrays.” If you’ve programmed before, then you probably know what these are. If you don’t, then don’t worry. I’ll explain it in a bit. Creating An Associative Array Clear your script and add this bit of code. [crayon-5994f5ed0d75e075653555/] We create a variable named jack and make it …

Read More »

Arrays – JavaScript Tutorial

Arrays

Arrays are a special kind of object. They can store multiple values. Let’s say you had a list of 800 names. If you had to create a variable for each of these names, then that would take a long time. Also, what if you were expecting to update this list with more or remove names? You’d have to manually create …

Read More »
ULTIMATE WORDPRESS DEVELOPMENT COURSE
Want to learn how to create your own custom WordPress plugins and themes? Check out my course!
Get 93% off my course. You'll also learn how to integrate WooCommerce and BuddyPress into your projects. This is a limited time offer
Yes, I would like to get 93% off your course!
No Thanks!
close-link