Thursday, September 22, 2016 JavaScript Getting and Setting Attributes All HTML elements have a large number of possible attributes such as class , id , src , and href . The DOM API contains getter and setter m...
4:11 PM JavaScript Finding the Value of a Node Finding the text contained within an element is actually trickier than it sounds. For example, the variable swim has a DOM node that contain...
6:57 AM JavaScript Navigating the DOM Tree Node objects have a number of properties and methods for navigating around the document tree. Once you have a reference to an element, you c...
2:40 AM JavaScript An Example Web Page To illustrate the DOM concepts covered in this chapter, we’ll use a basic web page that contains a heading and three paragraph elements. Sav...
2:30 AM JavaScript The Document Object Model What is the Document Object Model? The Document Object Model , or DOM for short, represents an HTML document as a network of connected no...
Sunday, September 18, 2016 JavaScript Quiz Ninja Project Now that we have come to the end of the chapter, it’s time to put what we’ve learned into practice in our Quiz Ninja project. Since we’ve...
Saturday, September 17, 2016 JavaScript Comparison We often need to compare values when we are programming. JavaScript has several ways to compare two values. Equality Remember earlier, w...
Friday, September 16, 2016 JavaScript Bitwise Operators Bitwise operators work with operands that are 32-bit integers. These are numbers written in binary (base two) that have 32 digits made up of...
Monday, September 12, 2016 JavaScript Logical Operators A logical operator can be used with any primitive value or object. The results are based on whether the values are considered to be truthy o...
2:37 AM JavaScript Booleans There are only two Boolean values: true and false . They are named after George Boole, an English mathematician who worked in the field of a...
Saturday, September 10, 2016 JavaScript Null Null means "no value". It can be thought of as a placeholder that JavaScript uses to say "there should be an value here, but ...
Thursday, September 8, 2016 JavaScript JavaScript Numbers Number can be integers (whole numbers, such as 3) or floating point decimals (often referred to as just "decimals" or "floats...
Wednesday, September 7, 2016 JavaScript Variables Variables Variables are common in programming languages. They are a way of storing a value in memory for later use. In JavaScript, we star...