Home > Web Front-end > JS Tutorial > body text

Javascript Basics Tutorial - JavaScript Syntax_Basic Knowledge

WBOY
Release: 2016-05-16 16:19:50
Original
951 people have browsed it

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!