跳到内容

特性

语法、浏览器 API 和其他特性。
您使用过以下哪些语法特性?
多选
0%
20%
40%
60%
80%
100%
01
10,717
02
8,222
03
5,314
04
4,327
05
4,041
06
-1
3,383
07
-1
2,795
08
RegExp.escape
873
09
-3
628
10
Float16Array
533
0%
20%
40%
60%
80%
100%
受访者百分比

字符串特性

您使用过以下哪些字符串特性?
多选
0%
20%
40%
60%
80%
100%
1
9,642
2
6,036
3
2,754
4
1,774
0%
20%
40%
60%
80%
100%
受访者百分比
您使用过以下哪些数组特性?
多选
0%
20%
40%
60%
80%
100%
1
5,419
2
+1
4,264
3
-1
4,082
4
3,879
5
2,349
6
1,421
7
860
0%
20%
40%
60%
80%
100%
受访者百分比
您使用过以下哪些 Set 特性?
多选
0%
20%
40%
60%
80%
100%
1
7,328
2
2,561
3
2,487
4
2,243
5
1,216
6
723
7
500
8
420
0%
20%
40%
60%
80%
100%
受访者百分比
您使用过以下哪些 Object 特性?
多选
0%
20%
40%
60%
80%
100%
1
6,387
2
4,018
0%
20%
40%
60%
80%
100%
受访者百分比
您使用过以下哪些异步特性?
多选
0%
20%
40%
60%
80%
100%
1
6,035
2
5,386
3
+1
3,186
4
1,838
0%
20%
40%
60%
80%
100%
受访者百分比
您使用过以下哪些浏览器 API?
多选
0%
20%
40%
60%
80%
100%
01
7,595
02
5,740
03
4,061
04
2,759
05
+2
2,522
06
-1
2,517
07
-1
2,505
08
1,989
09
1,599
10
+1
1,446
11
-2
1,367
12
+1
1,267
13
-3
1,242
14
-3
1,116
15
-1
443
16
334
17
-2
274
0%
20%
40%
60%
80%
100%
受访者百分比
关于 JavaScript 语言,您的主要痛点是什么?
(自由提问)
多选
0%
20%
40%
60%
80%
100%
01
Lack of static typing
02
Dates
+1
03
TypeScript support
+1
04
Browser support
-2
05
ESM & CJS
06
Error handling
07
Performance
08
Standard Library
+1
09
Handling objects
+2
10
Excessive complexity
+6
0%
20%
40%
60%
80%
100%
受访者百分比

浏览器 API 的痛点

在浏览器 API 方面,您的主要痛点是什么?
(自由提问)
多选
0%
20%
40%
60%
80%
100%
01
Browser support
02
browser_testing_issues
03
Safari
04
Date management
05
Performance
-1
06
Lack of documentation
-3
07
Excessive complexity
-2
08
Lack of adoption
+3
10
Firefox issues
-4
0%
20%
40%
60%
80%
100%
受访者百分比
我们邀请 JavaScript 社区成员分享他们的“年度之选”

我的 2025 年度之选: Delba Oliveira

我的年度之选是 Next.js 团队的 Delba Oliveira。她在整个生态系统中的工作都非常出色。她拥有一种罕见的能力,能让复杂的话题感觉简单,同时始终如一地为现代 Next.js、React 和 JS 提供极具实用性的指导。
我们邀请 JavaScript 社区成员分享他们的“年度之选”
虽然 Temporal 仍然排名第一,但兴奋度比去年有所下降,这很有道理,因为它已开始从理论提案过渡到在 Firefox 中实际实现。
在这些活跃的 JavaScript 提案中,你最感兴趣的是什么?
多选
0%
20%
40%
60%
80%
100%
01
5,614
02
3,672
03
1,861
04
1,816
05
JSON.parse source text access
+1
1,377
06
Explicit Resource Management
-2
1,244
07
Deferring Module Evaluation
-2
832
08
Decorator Metadata
-1
763
09
523
10
Iterator Sequencing
+2
499
11
Joint Iteration
433
12
-2
427
13
Signals
+1
14
Pipe operator
15
+1
16
Pattern matching
17
Record & Tuple
-1
18
Observable
+1
19
Type Annotations
-2
20
Async Context
21
Static typing
22
其他答案
139
0%
20%
40%
60%
80%
100%
受访者百分比

缺失的功能

前 5 名的排名没有变化,但值得注意的是,与去年相比,对 Signals 的兴趣确实略有下降。
你觉得 JavaScript 目前缺少什么?
多选
0%
20%
40%
60%
80%
100%
01
Static typing
6,177
02
Standard Library
5,441
03
Signals
3,339
04
2,943
05
Pattern Matching
2,275
06
Observable
1,595
07
+1
1,192
08
Async Context
+1
1,018
09
+3
709
10
643
11
+1
352
12
Composites
319
13
Error handling
14
Record & Tuple
-7
15
Enums
16
其他答案
171
0%
20%
40%
60%
80%
100%
受访者百分比
虽然 32% 的受访者希望 JavaScript 在浏览器中支持运行时类型,但如果官方真的支持类型,似乎更可能是通过类似 TypeScript 的类型注解,这排在第一位。
您希望如何在 JavaScript 中实现原生类型吗?
0%
20%
40%
60%
80%
100%
1
类型注解
5,380
2
运行时类型
3,524
3
我不希望看到它们被实现
1,170
4
类似 JSDoc 的类型
901
5
Similar to TypeScript
6
Type Annotations
7
无意见
8
其他答案
105
0%
20%
40%
60%
80%
100%
受访者百分比
这个问题的目的是大致了解受访者对新特性的跟进情况,结果显示我们大多数人都很难了解——更不用说尝试——新的语言特性。希望这些调查结果能对此有所帮助!
您通常能多好地跟上新的 JavaScript 特性,比如本调查中提到的那些?
0%
20%
40%
60%
80%
100%
1
我还没了解或尝试过大多数特性
2,276
2
我了解过一些特性,但还没尝试过
3,552
3
我了解并尝试过一些特性
4,226
4
我了解大多数特性并尝试过其中一些
1,269
5
我了解并尝试过大多数特性
292
0%
20%
40%
60%
80%
100%
受访者百分比

阅读列表让受访者可以在调查后了解更多关于特定项目的信息,今年我们对其进行了调整,除了允许受访者手动选择项目外,还支持根据调查答案自动添加项目。 这一变化导致列表更加侧重于库,而前几年则包含更多特性。

0%
20%
40%
60%
80%
100%
2,702
02
2,296
03
2,004
04
1,882
05
1,825
1,817
1,782
1,768
1,475
10
1,450
0%
20%
40%
60%
80%
100%
受访者百分比
每个项目被添加到受访者阅读列表的次数,该功能可让受访者在参与调查时了解更多有关特定主题的信息。
New: JavaScript The Hard Parts, v3
Will Sentance
Codesmith

New: JavaScript The Hard Parts, v3

Combining mental models of JavaScript's inner workings and hands-on programming challenges, this course will give you a solid understanding of callbacks and higher-order functions, closure, asynchronous JavaScript, and object-oriented JavaScript.
Getting Started with JavaScript, v3
Web Dev Simplified

Getting Started with JavaScript, v3

Learn the language that powers the web! Gain a fundamental understanding of JavaScript as you code variables, objects, arrays, and functions.
感谢合作伙伴对我们的支持! 了解更多。