当前位置:网站首页>6、 JS naming rules and specifications
6、 JS naming rules and specifications
2022-06-13 08:34:00 【001128XY】
1、 identifier
An identifier is a word , A name
Constant names 、 Variable name 、 Function names are identifiers
keyword 、 Reserved words are also identifiers
2、 Naming rules
1、 By letter 、 Numbers 、 Underline and $ The symbols make up , Cannot start with a number
2、 Can't be keywords and reserved words
3、 Case sensitive
3、 Naming specification
1、 Variable names are best known by name
2、 Little hump nomenclature : Initial lowercase , The first letter of the following words needs to be capitalized **( recommend )**
var userName = "wc"; // Little hump nomenclature
var UserName = "xq"; // The name of the great hump
var user_name = "xx"; // Underline nomenclature
边栏推荐
- Time and date processing in JS
- Shellshock Attack Lab
- JS - print 99 multiplication table of the for cycle case
- HCIP_ Static experiment
- Four ways to install MySQL in Linux
- Journal d'acquisition du faisceau de fichiers à Elk
- redis.exceptions.ConnectionError: Error 111 connecting to 172.16.8.128:6379. Connection refused.
- Tiktok keyword search list interface, ultra detailed interface docking steps
- [leetcode weekly race record] record of the 80th biweekly race
- Use of addeventlistener in JS
猜你喜欢

Microservice project construction III: automatic code generation

AcWing 1977. Information relay (base ring tree, parallel search set)

从零开始-实现JpetStore网站-1-建立项目框架以及项目介绍

JS - for cycle case: Horse grain

ERP basic data concept

Buuctf web (IV)

容器概念和云原生

The method of SolidWorks modifying text font in engineering drawing

File upload question type

Phpexcel 10008 error resolution
随机推荐
Microservice Project Construction II: database design
Phpexcel 10008 error resolution
Bidirectional retransmission step experiment
Dest0g3 520 orientation
Document contains question type
Edge browser uses bdtab new tab plug-in (BD new tab)
Maternal and infant supplies wholesale industry uses management software to improve efficiency and realize cost reduction and efficiency increase
How does the BD new tab plug-in log in?
MySQL queries difference sets (missing data) by linking tables based on an associated field
从零开始-实现JpetStore网站-1-建立项目框架以及项目介绍
MySQL installation and configuration under Windows
Learning record 4:einops / / cudnn benchamark=true // hook
Set implements list search and exclusion
JS - set countdown for Date object case
How to efficiently manage commodities and inventory in the beverage wholesale industry
Wrap dynamically created child elements in dynamically created structures
Why do wholesalers use the order system
Using KVM to create three virtual machines that can communicate with local area network
Data accuracy problems caused by inconsistent data types during sum in MySQL
判断一个字符串是否由另外一个字符串旋转而来