Fundamentals of
JavaScript

Totally free education on the Internet

About FAQ Tell a Friend Comments  Course Home Page    IT Learning Center

IT_coverSm08.jpg (19982 bytes)

About this Course

This is an introductory course that is mainly intended for serious computer hobbyists, IT students, and IT professionals. The free online textbook for this course is Sams Teach Yourself JavaScript in 24 Hours, Third Edition. You should begin by reading the complete Introduction to the book.

offiste01.jpg (430 bytes) Indicates links that take you away from the Free-Ed.Net site. Use the links on these offsite pages carefully, and use the Back function on your browser to return to these assignments.

Helpful References

offiste01.jpg (430 bytes) Glossary

offiste01.jpg (430 bytes) JavaScript Quick Reference

DOM Quick Reference

 

Lesson 6. Testing and Comparing Values

In this lesson you will learn about:

  • Testing variables with the if statement
  • Using various operators to compare values
  • Using logical operators to combine conditions
  • Using alternate conditions with else
  • Creating expressions with conditional operators
  • Testing for multiple conditions
  • Evaluating data received from the user

Reading Assignments

Read the following sections from your free online textbook:

Offsite The if Statement
Offsite Using Shorthand Conditional Expressions
Offsite Using Multiple Conditions with switch

 

Learning Activities

  1. Use this search box to refine and expand your understanding of new terms and concepts in the reading assignments.

Custom Search
  1. offiste01.jpg (430 bytes) Visit the hands-on Workshop: Evaluating a User Response .
  2. Review the lesson Summary.
  3. Test your understanding with the following items:
offiste01.jpg (430 bytes) Q&A
offiste01.jpg (430 bytes) Quiz
offiste01.jpg (430 bytes) Exercises


Web design and curriculum: David L. Heiserman

Copyright 2005 SweetHaven Publishing Services
All Rights Reserved

Most recent revision: March 20, 2014