Example on how you could link to your script file. Line 11 shows the link, the rest is standard HTML which you properly also need.
Basically variables is a small box with information, which you can reuse. Examples could be password, age, username, hobbies etc. Variables is used in many different programming languages.
If you have created a HTML and a js file and linked them, like in the example before. Now try to open the HTML file in your browser and open you js file in your code editor.
If you want to create a variable then you need to do it in your js file.
var lname =[“Linnet”];
var state its variable.
lname is the name of the variable, which can be almost anything you want.
Linnet is the value, and my last name.
If you want to see it in the browser you can use document.write.