Vocabulary of JavaScript

Objectives
In this lesson, students will learn:

  • The language: Syntax and Grammar
  • How to read and write JavaScript.
  • How to give instruction for a web browser to follow.

Statement
A basic programming unit, usually representing a single step in a JavaScript program.

Comments
You write comments to explain what your code does

Built-Functions
A basic programming unit, usually representing a single step in a JavaScript program.

TYPES OF DATA
There are three most basic types of data are numbers, string, and Boolean.

Numbers
Numbers are used for counting and calculating. A number is represented by a numeric character; 5, for example, is the number five.

Strings
A string is a series of characters (letters and other symbols) enclosed inside quote marks.

Booleans
There are one of two values: true or false.

Variables
A variable is a way to store information so you can later use to manipulate.


var
 is an example of what programmers call a keyword. The JavaScript interpreter knows that this keyword is used to create a variable. In order to use the variable, you must give it a name. (This is sometimes called identifier.) In this case, the variable is called quantity.


Once you have created a variable, you can tell it what information you would like it to store for you. You then assign a value to the variable. Until you have assigned a value to a variable, the value is undefined.

Advertisements