当前位置:网站首页>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
边栏推荐
- Document contains question type
- Do not update the sub component page of parameter object passed from parent to child of nailing applet?
- HCIP_ OSPF irregular area
- Determination of ranking
- array_ Pop error: only variables should be passed by reference
- 第115页的gtk+编程例子——最简单的进度条2附带使用Anjuta写gtk程序的步骤
- Leetcode- sort arrays by parity
- File upload question type
- Buuctf web (VI)
- Learning record 4:einops / / cudnn benchamark=true // hook
猜你喜欢

When submitting the laravel admin form and using the required verification, an error is reported when the value is 0
![[pychart pit stepping record] prompt after configuring remote operation, [errno 2] no such file or directory](/img/71/92c06496a9d982294cac61595e0392.png)
[pychart pit stepping record] prompt after configuring remote operation, [errno 2] no such file or directory

anaconda下安装pytorch

How to modify desktop path in win10 system

Buuctf web (III)

How does the BD new tab plug-in log in?

DNS domain name resolution service

Process and scheduled task management

ERP basic data concept

MySQL queries difference sets (missing data) by linking tables based on an associated field
随机推荐
Dest0g3 520 orientation
File upload question type
Use of addeventlistener in JS
[complete information static game characteristics of Nash equilibrium]
HCIP_ OSPF irregular area
Microservice Project Construction II: database design
CCNP_ Bt-ospf big experiment (1)
[virt-manager]远程管理启动虚拟机时,鼠标飘逸的问题
redis.exceptions.ConnectionError: Error 111 connecting to 172.16.8.128:6379. Connection refused.
JS - simple ATM of the for cycle case
ERP basic data concept
Determination of ranking
JD commodity detail interface, JD detail page interface, baby detail page interface, commodity attribute interface, commodity information query, commodity detail interface, H5 details, JD app details,
星巴克创始人:出于安全考量 或不再向非店内消费者开放“公厕”
How to download and install stm32cubemx
Four ways to install MySQL in Linux
LVM management exercise
MySQL sorts according to the specified order of the specified fields
Document contains question type
[game theory complete information static game] Nash equilibrium