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
31 312
подписчиков
Охват к подписчикам
4,4%
ERR
Реакции к просмотрам
0,35%
143 на 29 постов
Пересылки к просмотрам
0,09%
39
Постов в день
2,7
всего 29
Где отзываются чаще
доля реакций к просмотрам- 08:33без подписи0,84%
- 15 авг.Did you know JavaScript supports a third type of comment (beyond // and /* */)? 😉 Mat Marquis shows off hashbang comments in a short YouTube video. And yes, they're in the language spec!0,78%
- 7 авг.CHALLENGE const a = [] + {}; const b = {} + []; const c = 1 + '1' - 1; const d = '5' + 3 - 2; const e = true + true; console.log(a, b, c, d, e);0,67%
- 12 авг.↗️ TanStack Charts: A New Chart Grammar Option In the past few weeks, TanStack has been rapidly iterating on a new, framework-neutral way to declaratively specify a large number of chart-related visualizations in JavaScript. Output renders to SVG or canvas and can be styled as you wish. Here's a comparison against other established options. TanStack0,64%
- 13 авг.CHALLENGE class Money { #amount; constructor(amount) { this.#amount = amount; } [Symbol.toPrimitive](hint) { if (hint === 'number') return this.#amount; if (hint === 'string') return `$${this.#amount}`; return `Money(${this.#amount})`; } } const m = new Money(42); console.log(`${m}`, m + 8, m == 42);0,63%
- 8 авг.CHALLENGE let arr = []; for (let i = 0; i < 3; i++) { if (i === 1) { let i = 10; arr.push(i); continue; } arr.push(i); } console.log(arr.join('-'));0,58%
- 5 авг.без подписи0,50%
- 8 авг.без подписи0,45%
- 14 авг.👀 anydoc: Convert 14 Document Formats into Markdown A Rust-powered library (with Node.js and WASM bindings) that converts Word, PowerPoint, Excel, OpenDocument, RTF, EPUB, CSV, and PDF documents into Markdown. I tried it on a 1,600 page PDF and it took less than 2 seconds. There's also an in-browser demo to try it out. GitHub repo. Firecrawl0,44%
- 7 авг.без подписи0,43%
- 10 авг.без подписи0,40%
- 10 авг.CHALLENGE const Loggable = { log() { return `[${this.constructor.name}] ${this.toString()}`; } }; class Base { toString() { return 'Base instance'; } } Object.setPrototypeOf(Base.prototype, Loggable); class Derived extends Base { toString() { return 'Derived instance'; } } const b = new Base(); const d = new Derived(); console.log(b.log(), d.log(), Object.getPrototypeOf(Derived.prototype) === Base.prototype);0,39%