跳到内容

使用情况

您如何使用 JavaScript?

JavaScript/TypeScript 平衡

The proportion of developers who write the entirety of their code in TypeScript keeps increasing, and may soon represent a majority of respondents.

您如何分配编写 JavaScript 和 TypeScript 代码的时间?
0%
20%
40%
60%
80%
100%
1
0% TS
661
2
|
438
3
|
381
4
|
209
5
50/50
578
6
|
255
7
|
1,073
8
|
2,972
9
100% TS
4,367
0%
20%
40%
60%
80%
100%
受访者百分比

编译代码平衡

A natural consequence of writing typed code (at least today) is depending on a build step, which is the case for the vast majority of us.

您为浏览器编写的 JavaScript 代码中有多大比例需要经过构建步骤?
0%
20%
40%
60%
80%
100%
1
0% 编译过
260
2
|
184
3
|
183
4
|
114
5
50%
540
6
|
229
7
|
897
8
|
2,349
9
100% 编译过
5,861
0%
20%
40%
60%
80%
100%
受访者百分比

Build Step Advantages

If we did want to envision a build-less future, the first step would no doubt be native type support in JavaScript.

What do you feel are the main advantages resulting from using a build step?
Multiple
0%
20%
40%
60%
80%
100%
01
Static typing
7,891
02
Better development experience
5,460
03
Code optimization
4,963
04
Template/component transpilation
4,232
05
Bundling
2,921
06
Linting
2,097
07
Browser compatibility
1,503
08
Environment management
642
09
Asset processing
631
10
No advantages
11
All of the above
12
其他答案
53
0%
20%
40%
60%
80%
100%
受访者百分比

AI 代码生成

While respondents do not yet produce a majority of their code with AI, the balance is quickly shifting, with code being the result of AI output increasing from 20% to 29% year-over-year.

在您的代码中,人工智能生成的代码比例是多少?
0%
20%
40%
60%
80%
100%
1
0% AI
1,126
2
|
3,224
3
|
2,783
4
|
1,090
5
50%
1,153
6
|
557
7
|
627
8
|
187
9
100% AI
23
0%
20%
40%
60%
80%
100%
受访者百分比
We asked members of the JavaScript community to share their “pick of the year”

My 2025 Pick: Talk: Next.js at the speed of Bun

My pick is Lydia Hallie's talk at Next.js Conf about Bun. They're working on super exciting things, and shes the best at explaining advanced topics :)
We asked members of the JavaScript community to share their “pick of the year”

JavaScript 用例

Despite the ever-growing number of use cases for JavaScript, front-end develeopment remains the most common reason to use the language for now.

您使用 JavaScript 来做什么?
Multiple
0%
20%
40%
60%
80%
100%
01
前端开发
10,777
02
后端开发
7,261
03
移动应用
2,696
04
桌面应用
1,869
05
数据可视化
1,795
06
图形和动画
1,282
07
数据分析
938
08
游戏开发
682
09
嵌入式应用
+1
253
10
机器学习
-1
242
0%
20%
40%
60%
80%
100%
受访者百分比

Given the survey's focus on upcoming trends and early-stage features, it makes sense that its largest audience block would be developers building tools and products for other programmers.

你在哪个行业工作?
Multiple
0%
20%
40%
60%
80%
100%
01
编程和技术工具
4,210
02
咨询服务
3,243
03
电子商务与零售
2,403
04
金融
1,691
05
教育
+1
1,464
06
营销/销售/分析工具
-1
1,419
07
娱乐
1,360
08
卫生保健
992
09
新闻、媒体和博客
854
10
政府
757
0%
20%
40%
60%
80%
100%
受访者百分比

Modern JavaScript frameworks may now support a whole range of various rendering modes, but it turns out the simplest ones remain the most popular to this day.

您在去年使用过以下哪些架构和渲染模式?
Multiple
0%
20%
40%
60%
80%
100%
01
单页面应用 (SPA)
9,467
02
服务端渲染 (SSR)
6,308
03
静态站点生成 (SSG)
4,865
04
多页面应用 (MPA)
4,228
05
局部注水
2,302
06
岛屿架构
1,646
07
渐进增强
1,335
08
流式服务端渲染
+1
1,061
09
局部预渲染
+1
922
10
增量静态生成
-2
917
0%
20%
40%
60%
80%
100%
受访者百分比

JavaScript 痛点

We now have pretty much all the tools we need; the challenge is to know how to use them right.

您最头疼 JavaScript 的哪些方面?
Multiple
0%
20%
40%
60%
80%
100%
01
代码架构
3,809
02
全局数据管理
3,490
03
依赖管理
3,203
04
日期管理
+3
2,681
05
性能
2,578
06
构建工具
-2
2,303
07
调试
-1
2,177
08
类型
1,916
09
查找包
+1
1,303
10
异步代码
-1
1,110
0%
20%
40%
60%
80%
100%
受访者百分比

Web 技术满意度

Happiness is once again stable.

你对 Web 技术的总体状况感到满意吗?
1
2
3
4
5
2020
2021
2022
2023
2024
2025
1
2
3
4
5
平均 {axis}

JavaScript 满意度

Happiness levels remain constant once again.

你对 JavaScript 的总体状况感到满意吗?
1
2
3
4
5
2020
2021
2022
2023
2024
2025
1
2
3
4
5
平均 {axis}
Practical Prompt Engineering
Sabrina Goldfarb
GitHub

Practical Prompt Engineering

Generate higher quality code from AI tools! Learn prompting techniques that work consistently across Claude, ChatGPT, Copilot, and Cursor. Transform vague project ideas into structure, actionable development plans.
Front-End System Design
Evgenii Ray
Staff UI Engineer

Front-End System Design

Dive into front-end system design to create scalable, efficient user interfaces! Master core UI fundamentals: box model, browser rendering, DOM manipulation, state management, and performance.
感谢合作伙伴对我们的支持! 了解更多。