1. Case sensitive
In JavaScript, variables, functions, and operators are case sensitive.
2. Weak type variables
Only use the "var" keyword to define variables
The code copy is as follows:
var age = 25;
var myscholl = "sanxiao";
var mal = true;
3. The semicolon at the end of each line is optional .
4. Brackets are used for code blocks .
Code Example
The code copy is as follows:
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title></title>
<script language="javascript">
var school = "beijiang";
document.write(school);
</script>
</head>
<body>
</body>
</html>
Let's first article first, let's introduce it in detail later