当前位置:网站首页>Summary of common error types in JS
Summary of common error types in JS
2022-07-28 22:29:00 【Crane sorrow_】
1. ReferenceError( Misquote )

function sayHi(){
console.log(age);
let age = 21;
}
sayHi()2、TypeError( Type error )

var result = (function(){
var x = 1,y = 2;
sum = x + y
return sum;
})()
result()3.RangeError: Range error

var num = 0;
function fun() {
console.log(++num)
fun()
}
fun()4.SyntaxError( Grammar mistakes )

var a = 7;
var 1num = 3;
function(){
console.log(a);
}
边栏推荐
- Overall introduction of Ruiji takeout project
- [LiteratureReview]Object Detection and Mapping with Bounding Box Constraints
- 使用webWorker执行后台任务
- Less than a year after its establishment! MIT derivative quantum computing company completed financing of US $9million
- Add DNS server to LAN for domain name resolution
- ssh 免密码登录
- Alibaba cloud CDN practice
- openresty 请求鉴权
- Ruiji takeout - background login function development
- XXX port is already in use
猜你喜欢

96. Different binary search trees (medium binary search tree dynamic planning)

Lvs+keepalived high availability deployment practical application

ATT&CK 威胁情报

HCIP(14)

Jmeter 安装第三方插件 Plugins Manager

示波器发展史中的变化

Overall introduction of Ruiji takeout project

【CVPR 2021】Cylinder3D:用于LiDAR点云分割的圆柱体非对称3D卷积网络

Hcip seventh experiment

静态路由和缺省路由实验
随机推荐
Lvs+keepalived high availability deployment practical application
elment-plus图标input上面带的图标为什么不显示
Sword finger offer II 064. magic Dictionary (medium dictionary tree string design)
Sword finger offer II 055. Binary search tree iterator (medium binary search tree iterator)
How about the actual use effect of common source oscilloscope
Ecmasript 5/6 notes
ATT&CK 威胁情报
SQL injection less34 (post wide byte injection + Boolean blind injection)
75. Color classification (medium array double pointer sorting)
HCIP第七次实验
网易云信 2022Q2 产品补给站,快来获取你的产品补给计划吧!
2021年数学建模B组代码
The binary search boundary value processing based on leetcode35 is used to clarify the boundary value of the judgment condition using the idea of interval
SQL注入 Less34(POST型宽字节注入+布尔盲注)
JS implementation generates a random key of specified length
Sword finger offer II 058. schedule (medium design segment tree treemap ordered set)
Static route and default route experiment
[CS231N]Lecture_ 2:Image Classification pipelin
MySQL installation and configuration (super detailed, simple and practical)
40. Combined sum II