Sunday , 17 December 2017
Home / Tag Archives: all (page 7)

Tag Archives: all

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

Read More »

Manipulating Arrays – JavaScript Tutorial

Manipulating Arrays

Let’s talk about manipulating arrays now. There are a ton of methods for manipulating arrays, but we’ll talk about the mostly used ones. Before I move on, let me give you the technical terms for an array. The position or spot of an array is considered the index. The values in an array are items or elements. That’s all you’ll …

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 »

Events – JavaScript Tutorial

Events

One of the more powerful features in JavaScript are events. By default, there are a couple of events you have access to thanks to the HTML DOM. Let’s learn a couple of these events. Unobtrusive JavaScript I’ve talked about this before, but to refresh your memory I’ll say it again. Some events can be used directly inside HTML elements. While …

Read More »

Change CSS – JavaScript Tutorial

Change CSS

JavaScript not only allows you to change the HTML in your document, but you can also change the styles of a certain element. The procedure to change CSS is straightforward. Let’s look at how to do this. Updating the HTML Update the <body> tags in your HTML document to this. [crayon-5a3694297fe2e188663305/] Next, let’s clear your script and add this bit …

Read More »

Change HTML Attributes – JavaScript Tutorial

Change HTML Attributes

We learned how to change the HTML inside elements. What if we wanted to the change the HTML attributes? This is very easy to do. First, update the <body> tags inside your HTML document to this. [crayon-5a36942980338881004952/] What we’re going to do is grab the anchor tag’s link and change it with another link. Now that our HTML document is …

Read More »

Manipulating Elements – JavaScript Tutorial

Manipulating Elements

Now that we know how to grab an HTML tag, let’s talk about manipulating the data inside. Manipulating elements is fairly easy. So, let’s first clear out our script. Then, add this bit of code. [crayon-5a3694298086f729363435/] Just like last time, we store the tags inside a variable. Since there are 3 paragraph tags inside the HTML document, there has to …

Read More »

HTML DOM – JavaScript Tutorial

HTML DOM

We’re finished with talking about object oriented programming in JavaScript for now. We’re going to talk about the HTML DOM. As I stated in the first tutorial, you should have a good understanding of HTML and CSS. If not, then go learn HTML and CSS. These next couple of tutorials depend on that knowledge. What is the HTML DOM? DOM …

Read More »

Prototypes – JavaScript Tutorial

Prototypes

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