CHALLENGE class Counter { static #total = 0; #id; constructor() { Counter.#total++; this.#id = Counter.#total; } get id() { return this.#id; } static get total() { return Counter.#total; } } class Special extends Counter { #label; constructor(label) { super();…
JavaScript
频道A resourceful newsletter featuring the latest and most important news, articles, books and updates in the world of #javascript 🚀 Don't miss our Quizzes! Let's chat: @nairihar
互动与广告
近 30 天帖子聚合
- 平均反应
- 3.2
- 平均评论
- 0
- 平均转发
- 0.9
- 广告帖子(30 天)
- 0
- 广告占比
- 0.0%
- 被提及(30 天)
- 0
榜单位置
各窗口最近一次榜单
暂未进入榜单
频道进入榜单池并满足数据条件后会显示名次。
最近帖子
按发布时间倒序,最多展示 8 条
(无文本内容)
CHALLENGE const obj = { b: 1, 2: 'two', a: 3, 1: 'one' }; console.log(Object.keys(obj).join(','), Object.values(obj).join(','));
(无文本内容)
CHALLENGE class Counter { #count = 0; get value() { return this.#count; } set value(v) { if (v < this.#count) throw new RangeError('Cannot decrease'); this.#count = v; } } const c = new Counter(); c.value = 5; let msg; try { c.value = 3; } catch (e) { msg = e.…
(无文本内容)
CHALLENGE async function run() { const results = await Promise.allSettled([ Promise.resolve(1), Promise.reject('error'), new Promise(resolve => setTimeout(() => resolve(3), 0)), ]); console.log(results.map(r => r.value ?? r.reason).join(',')); } run();
(无文本内容)
相似频道
基于 Telegram 官方相似频道推荐
暂无相似频道
等待相似频道抓取任务运行。