JavaScript tutorial

JavaScript is the programming language for the Web.

All modern HTML pages use JavaScript.

JavaScript is constantly being upgraded, so we need to keep up with new JavaScript technologies.

<! DOCTYPE html><html>
<head>
<meta charset="utf-8">
<title>Wechat official account: E-commerce programmer</title>
<script>
function displayDate(){
	document.getElementById("demo").innerHTML=Date(a); }</script>
</head>
<body>

<h1>Sun Called beast's blog</h1>
<p id="demo">You are welcome</p>

<button type="button" onclick="displayDate()">Display the date</button>

</body>
</html>
Copy the code

Operation effect:

JavaScript introduction

JavaScript is the most popular scripting language on the Internet. It is used in HTML and the Web, and is widely used on servers, PCS, laptops, tablets and smartphones.

It is a scripting language.

JavaScript is a lightweight programming language.

JavaScript is