Home  >  Article  >  Web Front-end  >  The first JavaScript entry basics document.write output_basic knowledge

The first JavaScript entry basics document.write output_basic knowledge

WBOY
WBOYOriginal
2016-05-16 18:34:051103browse

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.

Copy code The code is as follows:





< ;/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
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn