Here are some Examples of how to use some basic JavaScript. All examples on this page work, feel free to try them.

Code Output
code

Example: How Variables Work


Enter anything for variable 1 (i.e ca7):

Enter anything for variable 2 (i.e 45):

code

Example: Adding Using Text Boxes


Enter a number:

Enter a second number:

Total:

code

Example: Putting Strings together


Enter First String:

Enter Second String:

Strings put Together:

code

Example: Global Variables

Global Variable:

Local Variable: