# Posts Tagged lessons

### Let’s Learn JavaScript • Lesson 3 • Beginning JavaScript

Posted by delightlylinux in Lessons on July 19, 2017

**ðŸ“… July 19, 2017**

Continuing from the exciting *Hello, Galaxy!* HTML file we wrote in the previous lesson, let’s add some JavaScript to show a popup dialog and write text to the page.

### Let’s Learn JavaScript • Lesson 2 • Basic HTML 5

Posted by delightlylinux in Lessons on July 14, 2017

**ðŸ“… July 14, 2017**

Client-side JavaScript requires a knowledge of HTML, so this lesson will focus on building a minimal HTML 5 file that we can use for writing JavaScript.

### Let’s Learn JavaScript • Lesson 1 • Introduction

Posted by delightlylinux in Lessons on July 13, 2017

**ðŸ“… July 13, 2017**

*Have you ever entered text in a search engine and noticed suggested results appear as you type? *That’s JavaScript.

*Have you scrolled through a web page of images and observed new images added to the page as you scroll towards the bottom of the page?* That’s JavaScript.

*Have you watched forms display a red border or error message as you finished entering a credit card number? *That’s more JavaScript.

*Have you ever thrown up your hands in anger as annoying popups littered your desktop with mind-jarring, blinking ads accompanied by new browser windows that expand to fullscreen in order to advertise an online survey? *That, too, is JavaScript.

JavaScript is a programming language that produces dynamic web pages. If you have ever wanted to learn how to perform this mysterious magic in JavaScript, then here is the first lesson that introduces the background of this fun language.

### Binary Lesson 16 – Binary Logic

Posted by delightlylinux in Lessons on December 16, 2014

A digital logic gate accepts input and produces a *Yes* or *No* output based upon a condition. Examine a light switch with two switches in the pseudo-electronic schematic below.

In order for the light to turn on, both switches must be on, but if either switch is turned off or if both switches are turned off, then the light is off.

### Binary Lesson 15 – Binary Division

Posted by delightlylinux in Lessons on November 17, 2014

**ðŸ“… November 18, 2014**

Binary division is an excellent way to practice an understanding of bits and binary values. Is one binary value larger than, smaller than, or equal to another?

This requires a good understanding of the binary place value system, and the better it is memorized, the easier binary division will be.

Also, binary division offers extensive practice with binary subtraction. We saved binary division until after we had introduced at least two methods for binary subtraction because the most involving part of binary divisionÂ is the subtraction itself.

Sometimes, we must also add a radix point for values not easily divisible by the given number. If this happens, keep in mind that an exact value might not be possible, as in the case of irrational numbers, so it will be necessary to stop at a certain number of digits for a close approximation. The exact point at which this occurs will depend upon experience…or if your fingers get tired, or if you run out of pencil lead, or if you get lost in the seemingly endless series of zeros.

### Binary Lesson 14 – Subtraction Using Two’s Complement

Posted by delightlylinux in Lessons on November 3, 2014

**âŒš November 3, 2014**

In Lesson 10, we saw how to perform binary subtraction using a set of rules for each column of bits.

Now that we have seen how to use signed numbers in binary, we can subtract in binary by performing algebraic addition using the two’s complement method.

Neither technique is more correct than the other. They are two different ways that produce the same result.

Personally, I find the two’s complement method to be easier to compute than the longhand method. It might sound conflicting to “subtract” by “adding,” but that is what we are doing when we add two signed numbers together with opposite signs. (+5) + (-3) = 2, which is the same as 5 – 3 = 2. Same result, but two different thought processes.

### Binary Lesson 13 – Signed Binary

Posted by delightlylinux in Lessons on October 27, 2014

**âŒš October 27, 2014**

If we can express signed values, such as +5 and -5, in decimal, can we do so in binary? Indeed we can!

Signed numbers are either positive or negative in value. If the number is preceded by a minus sign, then the number is negative. If no sign is present or if the number is preceded by a plus sign, then the number is positive.

-5Â Â Â Â Negative 5 +5Â Â Â Â Positive 5 5Â Â Â Â Â Positive 5 (+ symbol omitted) -100Â Â Negative 100 8Â Â Â Â Â Positive 8

(The value zero has no sign because nothing is nothing. Therefore, +0 and -0 are pointless.)

We can express signed numbers in binary in the same way, but there are a few points to be aware of to ensure correct mathematical results.