Home  >  Article  >  Web Front-end  >  Javascript Basics Tutorial - JavaScript Syntax_Basic Knowledge

Javascript Basics Tutorial - JavaScript Syntax_Basic Knowledge

WBOY
WBOYOriginal
2016-05-16 16:19:50947browse

1. Case sensitive

In JavaScript, variables, functions, and operators are case-sensitive.

2. Weak type variables

Only use the "var" keyword to define variables

Copy code The code 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

Copy code The code is as follows:











That’s it for the first article, we will introduce it in detail later

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