JavaScript Rocks! Using Variables (Distance Learning)

Digital Download
Digital Download
Share this resource


This tutorial engages the student in learning how to create and use variables in computer languages.

Use this learning activity in your web development and Intro to Programming courses.

Although JavaScript is used, the concepts taught apply to all popular programming languages.

View the interactive preview here.

The lesson is designed for beginning programming students and does not require a strong math background.

Learning Objectives:

-- Give examples of every day objects that are used like variables.

-- Create a variable using the keyword var.

-- Initialize a variable using the assignment "=" operator.

-- List at least three data types recognized by JavaScript.

-- Describe when to use the keyword var as well as when that is redundant.

The tutorial uses HTML and JavaScript to demonstrate the various concepts of using variables in code.

A case study and code walk through is included giving the students a sense of how variables are used. The case study involves a basic form and a feedback page showing the user's input.

Materials include:

-- Interactive tutorial that works on any device including smart phones

-- Both PDF and HTML (embed in your LMS) formats are included.

-- 14 question quiz bank in Moodle .gift format.

-- Student Project Specifications.

-- Start and Final source code files that can be used with the tutorial.

Important: This tutorial requires basic knowledge of HTML and using a text editor to create a simple web pages.

View the interactive preview here.

Total Pages
9 pages
Answer Key
Teaching Duration
1 hour
Report this Resource to TpT
Reported resources will be reviewed by our team. Report this resource to let us know if this resource violates TpT’s content guidelines.


to see state-specific standards (only available in the US).
Analyze the structure of the relationships among concepts in a text, including relationships among key terms (e.g., force, friction, reaction force, energy).
Determine the meaning of symbols, key terms, and other domain-specific words and phrases as they are used in a specific scientific or technical context relevant to grades 9–10 texts and topics.


Questions & Answers

Teachers Pay Teachers is an online marketplace where teachers buy and sell original educational materials.

More About Us

Keep in Touch!

Sign Up