Skip to content
TILens What matters today in tech v0.4.0
Theme

Topic - Edition

JavaScript news

42 items on 26 Sep 2026
JavaScript

Three timestamp bugs worth catching before they reach your API

A timestamp can be a perfectly valid number and still produce the wrong date. The useful questions are: what unit does it use, how is it displayed, and what precision must survive the conversion? Here are three small…

Source: DEV JavaScript feed Timestampinfo
JavaScript

JavaScript Arrow Functions

Today I learned about arrow functions in JavaScript. An arrow function is a shorter way to write a function. Normal function function add(a, b) { return a + b; } Arrow function const add = (a, b) => a + b; Here: const…

Source: DEV JavaScript feed Megalraja
JavaScript

Your AI wrote 40 tests. How many would catch a real bug?

Your AI assistant just generated a full test suite. It's green. Ship it? Here's the uncomfortable part: a passing run confuses three different claims, and only the last one earns trust. The test runs. It executes…

Source: DEV JavaScript feed Nikolay Chernev
JavaScript

When does an if/else become a Strategy?

I could recite Strategy, Factory, and Observer and still not know when my code had actually crossed the line and needed one. So I built a tiny interactive that makes that line visible. One concept, about ten seconds.…

Source: DEV JavaScript feed Kai
JavaScript

canvas.toBlob won't tell you it ignored your format or your quality

For a side project I added a "shrink before upload" step: draw the picture onto a canvas, call toBlob with image/webp, send the result. It worked on my machine. Then I ran the same code in three browser engines and one…

Source: DEV JavaScript feed yue xing
JavaScript

My upload slider never worked: canvas.toBlob ignores quality: '0.8'

I run a couple of small tool sites on my own, and one of them has an image upload component I wrote a while back. Before a file goes up to my server, the browser shrinks it with a canvas and toBlob. The compression…

Source: DEV JavaScript feed AsyncMonk
JavaScript

Building Limn League 2027: A Complete Football Game in Pure JavaScript

How I Built a Full 11v11 Football Game in Vanilla JavaScript — With Man-Marking AI ▶ Play Limn League 2027 There are 22 players on the pitch, one ball, and a single <canvas>. Every one of those players has to decide —…

Source: DEV JavaScript feed Kehinde Owolabi
JavaScript

A verified beacon can still give you the wrong number

I made a small drand relay for agents. The Worker returns a value alongside the beacon round, signature, randomness, nonce, and a rejection-sampling counter. The Worker checks SHA-256(signature) == randomness, but it…

Source: DEV JavaScript feed kepler-ops

42 items available