Variable part 3
Using Variables
Let's assign a value to a variable and output it to the browser.
Result:
Using variables is useful in many ways. You might have a thousand lines of code that may include the variable x. When you change the value of x one time, it will automatically be changed in all places where you used it.
Every written "instruction" is called a statement. JavaScript statements are separated by semicolons.
Use the corresponding keyword to complete the statement.
Comments
Post a Comment