<!doctype html>is put at the start of your code to tell the web browser that your page uses HTML5.
<h6>are used for sub-headings.
<ol>) or unordered (
( )and separated by
;, followed by statements that are run in the loop. The 1st expression is typically used to create a counter variable (which can be accessed both inside and outside the loop) Next is the loop condition. If this expression is true the statements inside the loop are run. If the expression is false, execution skips to the statement after the
nullif the user clicks cancel
'CodeAvengers'.charAt(0)is C, and
fromIndex; returns -1 if the value is not found. a string to search for. the location within the calling string to start the search from. It can be any integer between 0 and the length of the string. The default value is 0. E.g.
'CodeAvengers'.indexOf('e', 4)is 6
indexAup to but not including
indexBa number between 0 and the length of the string a number between 0 and the length of the string; if omitted,
substringgets characters from
indexAto the end of the string If
substringreturns an empty string If either parameter is less than 0 or is
NaN, it is treated as 0. If either parameter is greater than the string length it is treated as if it were the string length. If
indexAis larger than
indexB, the effect is as if the 2 parametrers were swapped E.g.
'CodeAvengers'.substring(4)is Avengers and
'CodeAvengers'.substring(5, 8)is ven
4 + 8equals
'4' + '8',
4 + '8'and
'4' + 8are equal to
32 - 24equals 8
4 * 8equals
16 / 2equals
a == bis true if
bhave the same value. E.g.
age == 15is true if age is 15
a != bis true if
bhave different values. E.g. code>age != 0 is true if age is any value except 0
a && bis true if both
bare true. E.g.
age > 0 && age < 100is true for an age from 1-99
a || bis true if either
bor both are true. E.g.
age == 5 || age == 10is true if age is 5 or 10 The
|key is normally above the Enter key.
This is a test paragraph');