There can be nothing written here, or something written here.
Just hide the Javascript with the HTML comment tag to make sure it doesn't display as page content on those browsers.
The rule is:
If you add a number and a string, the result will be a string!
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
if...else if...else statement - use this statment to select one of many blocks of code to be executed
switch statement - use this statement to select one of many blocks of code to be executed
This example demonstrates the If statement.
If the time on your browser is less than 10, you will get a "Good afternoon" greeting.
This example demonstrates the If...Else statement.
If the time on your browser is less than 10, you will get a "Good afternoon" greeting. Otherwise you will get a "G'day sir" greeting.
This example demonstrates the if..else if...else statement.
Use the switch statement to select one of many blocks of code to be executed.