How to Put a JavaScript Into an HTML Page

If you declare a variable, using "var", within a function, the variable can only be accessed within that function. When you exit the function, the variable is … ................
................