TGViewer
Channel Public Channel
JavaScript

JavaScript

@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
Subscribers
31.1K
Photos
1.2K
Videos
10
Links
894
Recent Posts 20 shown
Post #3506 477
CHALLENGE

'use strict';

function getValue() {
return this.value;
}

const obj = { value: 42, getValue };
const fn = obj.getValue;

try {
fn();
} catch (err) {
console.log(err.constructor.name, typeof this);
}
  • ❤ 2
Post #3505 800
  • ❤ 3
  • 🤔 3
Post #3504 775
CHALLENGE

const a = 5 & 3;
const b = 5 | 2;
const c = ~5;
const d = 1 << 31;
const e = -1 >>> 28;
const f = 5 ^ 5;
console.log(a, b, c, d, e, f);
Post #3502 956
CHALLENGE

let i = 0;
const key = () => `k${i++}`;
const obj = {
[key()]: i,
[key()]: i,
[key()]: i,
};
console.log(Object.keys(obj).join(','), obj.k0, obj.k1, obj.k2);
  • ❤ 3
Post #3500 1.06K
CHALLENGE

const nums = [1, 2, 3, 4, 5];
const result = nums
.filter(n => n % 2 !== 0)
.map(n => n ** 2)
.reduce((acc, n) => acc + n, 0);

const arr = [10, , 20, undefined, 30];
const mapped = arr.map(x => x * 2);

console.log(result, mapped);
  • ❤ 2
  • 🔥 2
Post #3499 1.33K
  • 👍 4
  • 🔥 3
Post #3498 1.22K
CHALLENGE

let count = 0;
const inc = () => (count += 1, count);
const a = 0 || inc();
const b = null ?? inc();
const c = a && inc();
const d = b?.toString() || inc();
console.log(a, b, c, d, count);
  • ❤ 3
  • 👍 2
Post #3497 1.41K
  • 🤔 5
  • ❤ 2
Post #3496 1.29K
CHALLENGE

const a = [] + [];
const b = [] + {};
const c = {} + [];
const d = 1 + "1" - 1;
console.log(a, b, c, d);
  • 🔥 2
  • 🤔 2
  • 🤩 1
Post #3494 1.5K
CHALLENGE

function Timer() {
this.seconds = 0;
this.tick = () => { this.seconds++; };
this.tickRegular = function () { this.seconds++; };
}

const t = new Timer();
const { tick, tickRegular } = t;
tick();

let regularResult;
try {
tickRegular();
regularResult = 'no error';
} catch (e) {
regularResult = e instanceof TypeError;
}

console.log(t.seconds, regularResult);
  • ❤ 4
  • 👍 1
Post #3493 1.56K
  • 🤣 3
  • 🔥 2
Post #3492 1.59K
CHALLENGE

const base = {
get value() {
return this._value ?? 'default';
},
set value(v) {
this._value = v;
}
};

const derived = Object.create(base);
derived.value = 'hello';

const another = Object.create(base);

console.log(derived.value, another.value, derived.hasOwnProperty('_value'));
  • 🤣 7
Post #3490 1.69K
CHALLENGE

class Base {
#value = 0;
get value() { return this.#value; }
set value(v) { this.#value = v * 2; }
}
class Derived extends Base {
get value() { return super.value + 1; }
set value(v) { super.value = v + 10; }
}
const d = new Derived();
d.value = 5;
console.log(d.value, d.value = 100, d.value);
Post #3489 2.03K
🌲 A Recap of Node.js Interactive 2026

Node.js Interactive returned for the first time since 2019 as part of this month's RenderATL event with Node contributors and invited speakers tackling Node's near-term roadmap in areas like AI, supply chain security, WinterCG becoming Ecma TC55, work on QUIC and HTTP/3 support, and Node's move to one major release a year.

Aviv Keller
  • ❤ 3
  • 👍 1
  • 🔥 1
Post #3488 2.04K
👀 Uppy 6.0: A Modular JavaScript File Uploader

Resumable uploads from disk, Dropbox or GDrive, with wrappers for React, Vue, Svelte & Angular. This version focuses on clean-up, with a rewritten S3 plugin and fewer packages to manage.

Transloadit
  • 🤔 3
  • ❤ 1
  • 👍 1
  • 🔥 1
Older posts →

About this channel

How can I read @javascript without a Telegram account?
TGViewer shows the public web preview Telegram publishes for JavaScript: recent posts, photos, videos and the subscriber count, with no app, login or account.
How many subscribers does JavaScript have?
JavaScript (@javascript) has 31.1K subscribers on Telegram, refreshed roughly every 30 minutes.
Does JavaScript know I viewed it here?
No. Public channel previews carry no viewer identity, and TGViewer has no accounts or tracking of what you look up.
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →