-
JavaScript Tutorial For Beginners #9 – Math Operator Short-hand
Hey guys. In this JavaScript tutorial I want to build on what we’ve already learnt about mathematical operators, and show you a few cool short-hand notation versions that will save you time. += is the short-hand for adding to the current variable -= is the short-hand for subtracting from the current variable *= is the…
-
JavaScript Tutorial For Beginners #35 – Changing Element Attributes
Yo ninjas, so in this javascript lesson I want to build on the last tutorial by introducing the getAttribute and setAttribute methods for changing the attributes on your HTML elements. getAttribute allows us to read the value of any given attribute, and setAttribute allows us to set the attribute value to whatever we want. If…
-
JavaScript Tutorial For Beginners #33 – Traversing the DOM
Hey all, in this JavaScript tutorial for beginners, I’ll explain how we can reach into the DOM and grab content (nodes) from the DOM tree, such as elements, classes and ID’s. And I’ll also explain how we can search ‘within’ tags under different scopes to find child elements. In this tutorial we’ll learn three JavaScript…
-
JavaScript Tutorial For Beginners #43 – Accessing Form Elements
Yo ninjas, in this JavaScript tutorial I’ll show you how to access form elements and work with their properties and methods in JavaScript. In particular, we’ll look at the onblur and andfocus method in this tutorial. SUBSCRIBE TO CHANNEL – https://www.youtube.com/channel/UCW5YeuERMmlnqo4oq8vwUpg?sub_confirmation=1 ========== JavaScript for Beginners Playlist ========== ========== CSS for Beginners Playlist ========== ========== HTML…
-
JavaScript Tutorial For Beginners #12 – If Statements
Hi all. In this JavaScript tutorial for beginners, we’re going to take our first look at control flow – if statements. If statements are alive everywhere you look in the world. If you perform an action, there will be a corresponding reaction or result. This concept is used in programming too. If statements can be…
-
JavaScript Tutorial For Beginners #26 – Arrays
Hey guys, in this JavaScript tutorial I wanted to show you how to make arrays and how we store pockets of informations in them. Arrays can be (virtually) endless in the amount of pockets they can hold, certainly enough for any client side script. The biggest indicator someone is using an array is the square…
-
JavaScript Tutorial For Beginners #21 – Variable Scope
Hey all, this JavaScript tutorial for beginners will introduce the concept of variable scope. Variables can have either global or local scope. A global variable is initialized at the ‘top-level’ of your document, and can be used anywhere within your document after it has been declared. A local variable has only local scope, and can…
-
JavaScript Tutorial For Beginners #18 – Break & Continue
Break and Continue are two reserved keywords in JavaScript that help us when trying to ‘get out’ of a loop, and we’ll cover both in this tutorial. Break, as the name suggests, breaks out of a loop at any given point, and Continue just tells the loop to ‘skip’ this particular iteration and carries on…
-
JavaScript Tutorial For Beginners #10 – Logging to the Console
Hey ninjas, in this JavaScript lesson I’ll be showing you a couple of quick and easy ways to test your JavaScript code and variable values. These include the Console.log method, as well as the Document.write method. You don’t need to worry too much about the Document and Console objects so much yet, as we’ll be…
-
JavaScript Tutorial For Beginners #20 – Functions
Hey class, so in this JavaScript tutorial I want to introduce you to the world of functions. Yep, I think you’re ready for them :). Functions allow you to chunk parts of code together into logical sections, and call that code at any time. For example, you may have a function to cycle through all…