stampare una variabile in javascript 1

stampare una variabile in javascript

document.write(VariableName);
document.write("Text" + VariableName);
//print like a text in a html file

Here is what the above code is Doing:
1. We create a variable called VariableName and assign it the value of “Hello World”.
2. We then print the value of VariableName to the console.
3. We then print the value of VariableName to the HTML document.
4. We then print the value of VariableName to the HTML document, but we also print some text before and after it.

Similar Posts