This module provides an introductory JavaScript programming tutorial that is accessible to blind students with no programming experience.
Table of contents
Preface
General
This module is part of a collection of modules designed to make physics
concepts accessible to blind students.
If you opened this page in the context of the book, a Table of Contents for
the book (or collection) should be available above and to the left of thisparagraph. Otherwise, click
here to open the book at the beginning.
This book is intended to supplement but not to replace the textbook in an
introductory high school or college physics course.
Prerequisites
In addition to an Internet connection and a browser, you will need the
following tools (as a minimum) to work through the exercises in these modules:
- A graph board for plotting graphs and vector diagrams (
(External Link) ).
- A protractor for measuring angles (
(External Link) ).
- An audio screen reader that is compatible with your operating system,
such as the NonVisual Desktop Access program (NVDA), which is freelyavailable at
(External Link) .
- A refreshable Braille display capable of providing a line by line tactile output of information displayed on the computer monitor
(
(External Link) ).
- The ability to create tactile graphics as described
here .
The minimum prerequisites for understanding the material in these modules
include:
- A good understanding of algebra.
- An understanding of the use of a graph board for plotting graphs and
vector diagrams (
(External Link) ).
- An understanding of the use of a protractor for measuring angles (
(External Link) ).
- A basic understanding of the use of sine, cosine, and tangent from
trigonometry (
(External Link) ).
(This information will be provided in a later module.)
- An introductory understanding of JavaScript programming (
(External Link) and
(External Link) ).
(The purpose of this module is to help you gain that understanding.)
- An understanding of the creation and use of tactile graphics as
described
here .
Viewing tip
I recommend that you open another copy of this document in a separate
browser window and use the following links to easily find and view the figuresand listings while you are reading about them.
-
Figure 1 . Output from script in Listing 1.
-
Figure 2 . Output from script in Listing 2.
-
Figure 3 . Binary arithmetic operators.
-
Figure 4 . General syntax for selection
statement.
-
Figure 5 . Real-world analogy of a selection statement.
-
Figure 6 . Output from script in Listing 3.
-
Figure 7 . Relational operators.
-
Figure 8 . Output from script in Listing 4.
-
Figure 9 . General syntax for a while loop.
-
Figure 10 . Output from script in Listing 5.