When completing this competency 1.2, students will be able to:
1. Create valid JavaScript code.
Pages created in HTML are much like a page in any text. To be able to gather and process data a programming language is needed. Learning to write JavaScript will allow you to write interactive pages.
2. Demonstrate the rules for a JavaScript identifier.
To be able to use variables or to identify a tag, you use an identifier. You used identifiers when you used an id on your index page. There are rules for creating identifiers.
3. Declare, initialize, modify, and display JavaScript variables.
Variables in JavaScript are similar to variables in math. In order to gather and process data, you will need to work with variables. You can create variables, give them a value change the value and display the value in a web page. A variable can also be thought of as a memory location.
4. Evaluate JavaScript expressions.
There are no equations in JavaScript. An expression can be a value, a variable, any combination of values, variables, and operators.
5. Recognize a JavaScript event.
A JavaScript event is an action or a response to something that occurs (for instance a button is pressed).
6. Recognize and correct JavaScript errors using Firebug.
JavaScript errors are two types, syntax errors (writing code incorrectly) and logic errors (not correctly evaluating an expression or processing data incorrectly). Firebug is a software program that helps you find logic errors.