跳到内容

特性

语法、浏览器 API 和其他特性。
您使用过以下哪些语法特性?
Multiple
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%
受访者百分比

字符串特性

您使用过以下哪些字符串特性?
Multiple
0%
20%
40%
60%
80%
100%
1
9,642
2
6,036
3
2,754
4
1,774
0%
20%
40%
60%
80%
100%
受访者百分比
您使用过以下哪些数组特性?
Multiple
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%
受访者百分比
Which of these Set features have you used?
Multiple
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 Features

Which of these Object features have you used?
Multiple
0%
20%
40%
60%
80%
100%
1
6,387
2
4,018
0%
20%
40%
60%
80%
100%
受访者百分比
您使用过以下哪些异步特性?
Multiple
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?
Multiple
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 语言,您的主要痛点是什么?
(自由提问)
Multiple
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 方面,您的主要痛点是什么?
(自由提问)
Multiple
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%
受访者百分比
We asked members of the JavaScript community to share their “pick of the year”

My 2025 Pick: Delba Oliveira

My pick of the year is Delba Oliveira from the Next.js team. Her work across the ecosystem is remarkable. She has a rare ability to make complex topics feel simple while consistently delivering deeply practical guidance for modern Next.js, React and JS.
We asked members of the JavaScript community to share their “pick of the year”

While Temporal still tops the rankings, excitement is down from last year, which makes sense as it has begun its transition from theoretical proposal to actually being implemented in Firefox.

在这些活跃的 JavaScript 提案中,你最感兴趣的是什么?
Multiple
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%
受访者百分比

缺失的功能

No change in ranking in the top 5, but it's notable to see that interest in Signals did drop slightly compared to last year.

你觉得 JavaScript 目前缺少什么?
Multiple
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%
受访者百分比

While 32% of respondents are hoping for in-browser runtime types support in JavaScript, if types are ever officially supported it seems much more likely to be through TypeScript-like type annotations, which came in at number one.

您希望如何在 JavaScript 中实现原生类型吗?
0%
20%
40%
60%
80%
100%
1
Type annotations
5,380
2
Runtime types
3,524
3
我不希望看到它们被实现
1,170
4
JSDoc-like types
901
5
Similar to TypeScript
6
Type Annotations
7
No opinion
8
其他答案
105
0%
20%
40%
60%
80%
100%
受访者百分比

Pace of Change

This question's aim was to get a rough idea of how well respondents are keeping up with new features, and it shows that most of us struggle to learn about–let alone try out–new language features Hopefully this is something these survey results can help with!

How well are you generally able to keep up with new JavaScript features, such as those mentioned in this survey?
0%
20%
40%
60%
80%
100%
1
I haven't learned about or tried out most features
2,276
2
I've learned about some of the features; but haven't tried them out
3,552
3
I've learned about and tried out some of the features
4,226
4
I've learned about most of the features and tried out some of them
1,269
5
I've learned about and tried out most of the features
292
0%
20%
40%
60%
80%
100%
受访者百分比

The Reading List lets respondents learn more about specific items post-survey, and this year we tweaked it to support auto-adding items based on survey answers, in addition to letting respondents select items manually. This change led to a much more library-focused list, compared to previous years which included more features.

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

JavaScript: The Hard Parts, v2

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.
感谢合作伙伴对我们的支持! 了解更多。