JavaScript is Case Sensitive
Elizabeth Dole - 0 views
Dorothy Day - 0 views
Elizabeth Blackwell - 0 views
Willa Cather - 0 views
Shirley Chisholm - 0 views
Nellie Bly - 0 views
Hillary Clinton - 0 views
Jackie Cochran - 0 views
Joan Ganz Cooney - 0 views
Rachel Carson - 0 views
Paul Krassner - 0 views
John Keats - 0 views
JavaScript Statements - 0 views
-
-
A JavaScript statement is a command to a browser. The purpose of the command is to tell the browser what to do.
-
It is normal to add a semicolon at the end of each executable statement.
- ...6 more annotations...
JavaScript Comments - 0 views
-
Comments can be added to explain the JavaScript, or to make the code more readable. Single line comments start with //.
-
Multi line comments start with /* and end with */.
-
In the following example the comment is used to prevent the execution of a single code line (can be suitable for debugging): Example <script type="text/javascript"> //document.write("<h1>This is a heading</h1>");
- ...2 more annotations...
JavaScript Variables - 0 views
-
Variables are "containers" for storing information.
-
variables can be used to hold values (x=5) or expressions (z=x+y).
-
A variable can have a short name, like x, or a more descriptive name, like carname.
- ...8 more annotations...
JavaScript Operators - 0 views
-
= is used to assign values.
-
+ is used to add values.
-
The + operator can also be used to add string variables or text values together.
- ...3 more annotations...
JavaScript Comparison and Logical Operators - 0 views
-
Comparison operators can be used in conditional statements to compare values and take action depending on the result: if (age<18) document.write("Too young");
-
JavaScript also contains a conditional operator that assigns a value to a variable based on some condition. Syntax variablename=(condition)?value1:value2
JavaScript If...Else Statements - 0 views
-
Conditional statements are used to perform different actions based on different conditions.
-
if statement - use this statement to execute some code only if a specified condition is true
-
if...else statement - use this statement to execute some code if the condition is true and another code if the condition is false
- ...8 more annotations...
« First
‹ Previous
81 - 100
Next ›
Last »
Showing 20▼ items per page