SoFunction
Updated on 2025-03-10

The first JavaScript entry basics

If you have a programming foundation, learning Javascript is an easy thing. If you don't have a programming foundation, don't worry, we will explain every line of code for you.
Copy the codeThe code is as follows:

<html>
<body>
<script type=”text/javascript”>
(“This is my first javascript”);
</script>
</body>
</html>

We will skip the HTML part. If you don't understand HTML, 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 scripts
("This is my first Javascript!"); -- This line of code will print a line "This is my first Javascript!" on the screen.
String.
</script> -- Javascript script end tag
Isn't it very simple? You have written your first Javascript script, so stay tuned for more Javascript tutorials