当前位置:网站首页>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
边栏推荐
- Founder of Starbucks: no longer open "public toilets" to non store consumers for safety reasons
- DHCP principle and configuration
- Buffer Overflow Vulnerability Lab
- Set implements list search and exclusion
- JS to download files in batches
- How to install the bdtab (BD) new tab plug-in in edge browser (Graphic tutorial)
- 淘宝商品历史价格接口/商品历史价走势接口代码对接分享
- Learning record 4:einops / / cudnn benchamark=true // hook
- Buuctf web (III)
- regular expression
猜你喜欢

HCIP_ MGRE experiment

微服务项目搭建三:自动生成代码

When submitting the laravel admin form and using the required verification, an error is reported when the value is 0

Remote access and control

使用kvm创建三台能通局域网的虚拟机

How to download and install stm32cubemx

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

Disk management and disk partition operation

Format_ String_ Server

DIY无人机(匿名拓控者P2+F330机架)
随机推荐
PHP isset() method ignores data error handling caused by null parameter value
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,
微服务系统架构搭建一:环境搭建
Buffer Overflow Vulnerability Lab
MySQL installation and configuration under Windows
Use of addeventlistener in JS
JS wrapper object
JS - set countdown for Date object case
Redis subscribe connection timeout interrupt problem solution
How to hide tabs in nailing applet
Start from scratch - implement the jpetstore website -1- establish the project framework and project introduction
Leetcode- sort arrays by parity
ERP basic data Huaxia
Time and date processing in JS
1.SolidWorks各模块的学习顺序
What software can be used to solve the problems faced by the auto parts industry
Svg text stroke effect
LVM management exercise
Determine whether a string is rotated from another string
杨氏矩阵查找数字是否存在