Monday , 20 November 2017
Home / Tag Archives: objects (page 2)

Tag Archives: objects

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 »

Object Oriented Programming – Advanced JavaScript Tutorial

Object Oriented Programming

Object oriented programming in JavaScript is different than most programming languages. JavaScript has no acknowledgement of classes. All properties and methods inside an object are just name-value pairs. We’ve discussed object oriented programming before in the JavaScript beginner tutorial series. Now, we’ll go more in-depth of what OOP is. They way we’ve been writing code is what’s called procedural code. …

Read More »

Array Methods – Advanced JavaScript Tutorial

Array Methods

If you’ve seen my beginner JavaScript tutorials, then you already know about arrays. In this tutorial, we’ll discus a couple of handy array methods for iterating through arrays. Iterative Methods As you may know, the for in loop is a great way to loop through all the items in an array. However, arrays come with 5 methods for looping through …

Read More »

Garbage Collection – Advanced JavaScript Tutorial

Garbage Collection

It’s time to take out the trash! No, not the one in your home. I’m talking about the one in your programs. For every object you create, you take up memory in the visitor’s computer. It isn’t just in some imaginary storage. JavaScript will free up space when you have objects that are no longer in use. This is what’s …

Read More »

Nesting Objects and Arrays – JSON Tutorial

Nesting objects and arrays

Let’s talk about nesting JSON data. We’ll learn about nesting objects and arrays. Let’s update our script to this. [crayon-5a123ca6e1023515951206/] Inside our JSON object, we store 2 other JSON objects. Since we do it this way, we now have access to the other JSON objects. This makes it easier to manage and store data. Let’s learn how to access the …

Read More »

Animation – JavaScript Tutorial

Animation

Animation is an exciting topic in JavaScript. There are many tools out there to perform animations from basic to advance. Some of these tools are actual programs that allow you to input some numbers and then it takes care of the programming part of it. In this mini tutorial series, we’re going to be creating animations with pure JavaScript. Animating …

Read More »

For In Loop – JavaScript Tutorial

For In Loop

The for in loop in JavaScript is a special kind of loop. It’s specifically designed for arrays and objects. It allows you to loop through an array or object’s elements or properties. Let’s take a look at how to do this. Clear your script and add this bit of code. [crayon-5a123ca6e289b515374777/] You create an array. Next, we create our for …

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-5a123ca6e3006019338337/] 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-5a123ca6e37f3144226938/] We create a variable named jack and make it …

Read More »

Creating Properties and Methods – JavaScript Tutorial

Creating Properties and Methods

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 »
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