keywords:
Bookmark and Share



Front Back
What is the confirm() method
* Similar to Alert()
* Returns either True or False
What is the prompt() Method
* Requests user input throught a text field within a dialog box.
* Window Object
What is the alert() Method
* Simple JavaScript method that allows you to communicate with the users.
* Window Object
What is the document.write() method
* Belongs to the document ojbect and allows you to create text that is dynamically written to the windows as the script is executed.
What is a Variable
* Named space of memory.
* Container that holds a value.
* Five data types: number, string, Boolean,null and Object.
What is JavaScript expression
* Part of a statement that is evaluated as a value.
What are the types of expressions?
* Assignment
* Arithmetic
* String
* Logical
What is Operand?
Data that is to be operated upon or manipulated in some manner.
What is a Statement?
A single line of code to be executed in a script or program.
What is Concatenation?
Synthesis of code to simplify it and reduce duplication; linking two or more units of information such as strings or file, to form one unit.

exp. alert("Begin message " + prompt("Message to user", "default text") + " End message.");
What is an Event Handler?
A JavaScript mechanism for intercepting an event and associating exectable code with that event.
What is Dot Notation?
A reference used to access a property or method of an object.

exp. objectName.methodName();
objectName.propertyName;
What is the Assignment Expression?
Assigns a value to a variable.

Exp. myNumber = 25;
The value 25 has been assigned to the varible nyNumber.
Operator is = (assignment).
What is the Arithmetic Expression?
Evaluates to a number.

Exp. 25 + 75;
This expression evaluates to the sum of 25 and 75.
Operator is + (addition).
What is the String Expression?
Evaluates to a string.

Exp. "Hello, " + "Sandy";
This evaluates to a new string that says "Hello, Sandy".
Operator is + (concatenation).
What is the Logical Expression?
Evaluates to true or false.

exp. 25 > 75;
Becuase 25 is less than 75, this expression evaluates to the Boolean value of true.
Operator is < (less than comparison).
What is Operand?
Data that is to be operated upon or manipulated in some manner.
What is a Statement?
A single line of code to be executed in a script or program.
What is Concatenation?
Synthesis of code to simplify it and reduce duplication; linking two or more units of information such as strings or file, to form one unit.

exp. alert("Begin message " + prompt("Message to user", "default text") + " End message.");
What is an Event Handler?
A JavaScript mechanism for intercepting an event and associating exectable code with that event.
What is Dot Notation?
A reference used to access a property or method of an object.

exp. objectName.methodName();
objectName.propertyName;
What is a Function?
A named block of code that can be called when needed. Can return a value.
What is a argument?
A value or expression containing data or code that is passed on to a function or procedure.
x of y cards