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 4. Using Functions and Variables

In this lesson you will learn about:

  • Declaring and calling functions
  • Returning values from functions
  • Naming and declaring variables
  • Choosing whether to use local or global variables
  • Assigning values to variables
  • How to convert between different data types
  • Using variables and literals in expressions
  • Using variables to store data entered by the user

Reading Assignments

Read the following sections from your free online textbook:

offiste01.jpg (430 bytes) Using Functions
offiste01.jpg (430 bytes) Understanding Expressions and Operators
offiste01.jpg (430 bytes) Using Variables
offiste01.jpg (430 bytes) Data Types in JavaScript
offiste01.jpg (430 bytes) Converting Between Data Types
 

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: Storing User Data in Variables.
  2. offiste01.jpg (430 bytes) 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