If you have a programming foundation, learning Javascript is very easy. If you don't have a programming foundation, don't worry, we will explain every line of code for you.
< ;/html>
We will skip the HTML part. If you don’t know HTML then you should learn it first and then learn Javascript. You can see our HTML tutorial
Now back to our code:
script type -- define our script type
text/javascript -- initialize the script language, after initialization you can write your Javascript script
document.write(“This is my first Javascript!”); -- This line of code will print a line of “This is my first Javascript!”
string on the screen.
-- Javascript script end tag
Isn’t it very simple, you have written your first Javascript script, please stay tuned for more Javascript tutorials