JavaScript
31.9K subscribers
1.01K photos
9 videos
33 files
693 links
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
Download Telegram
What is the output?
Anonymous Quiz
27%
undefined
22%
true
44%
false
8%
TypeError
🀣15πŸ‘9❀5πŸ€”4
😱 jscanify 1.3: JavaScript Document Scanning Library

Given raw photos of documents, this can do paper detection (along with glare suppression), distortion correction, highlighting and extracting. See some visual examples or try it out here.

ColonelParrot
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ”₯8❀3πŸ‘3πŸ€”1
CHALLENGE

const numbers = [1, 2, 3, 4, 5];

const result = numbers
.filter(n => n % 2 === 0)
.map(n => n * 2)
.reduce((acc, n) => acc + n, 0);

console.log(result);
❀5πŸ‘1
What is the output?
Anonymous Quiz
11%
8
12%
0
70%
12
7%
4
πŸ‘21πŸ€”6πŸ”₯5❀3
CHALLENGE

const person = {
name: 'Alice',
age: 25,
city: 'Wonderland'
};

const additionalInfo = {
age: 30,
occupation: 'Explorer'
};

const combined = {
...person,
...additionalInfo
};

console.log(combined.age);
πŸ‘12πŸ”₯3
What is the output?
Anonymous Quiz
9%
null
16%
25
57%
30
18%
undefined
πŸ‘22πŸ”₯4❀2
CHALLENGE

function example() {
console.log(a);
var a = 10;
console.log(a);
}
example();
πŸ‘2πŸ€”2
❀22πŸ‘18🀣6πŸ”₯3
Please open Telegram to view this post
VIEW IN TELEGRAM
🀣10πŸ‘7πŸ€”4πŸ”₯3❀2
CHALLENGE

const person = {
firstName: 'John',
lastName: 'Doe',
age: 30,
getFullName: function() {
return this.firstName + ' ' + this.lastName;
}
};

console.log(person.getFullName());
🀣26πŸ‘3❀2
🀣32πŸ‘11❀8🀩2
✌️ Oracle Claims 'JavaScript' Isn't a Generic Term, and More

In this 'motion to dismiss' Oracle has responded to Deno’s attempt to prove Oracle shouldn't hold the JavaScriptβ„’ trademark with the argument that β€œrelevant consumers do not perceive JAVASCRIPT as a generic term” (does Oracle only consider people who give it money to be relevant?) among other comedic insights.

Ryan Dahl
Please open Telegram to view this post
VIEW IN TELEGRAM
🀣12πŸ‘8❀1
CHALLENGE

const a = '5';
const b = 5;
const c = 10;

const result1 = a == b;
const result2 = a === b;
const result3 = b < c;
const result4 = b >= c;

console.log(result1, result2, result3, result4);
πŸ‘9❀3
πŸ€”18πŸ‘7🀩7❀6
πŸ€” Which Rich Text Editor Framework Should You Choose in 2025?

A round-up of actively developed WYSIWYG editor options you can drop into your apps along with the pros and cons of each.

Dexemple and Rowny (Liveblocks)
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘5❀1πŸ”₯1πŸ€”1
CHALLENGE

let a = 5;
let b = a++ + ++a;
console.log(b);
🀣24πŸ”₯8πŸ‘5
What is the output?
Anonymous Quiz
37%
12
36%
11
10%
13
17%
10
πŸ€”38πŸ”₯15πŸ‘13🀣8❀1
πŸ‘ A Protracker Module Player in Pure JavaScript

I’m a sucker for 90s tracker music, JavaScript experiments, and cool Web experiences, and this has all three. If you’re not familiar with tracker music, it’s a way to write music on a grid which triggers the playing of samples. This code manages to parse and play a Protracker file in pure JavaScript. (Note: The image above is of the original Protracker app, this experiment is more minimal and about the code.)

srtuss
Please open Telegram to view this post
VIEW IN TELEGRAM
❀4πŸ‘3πŸ”₯1
CHALLENGE

'use strict';

function strictModeExample() {
undeclaredVariable = 10;
try {
console.log(undeclaredVariable);
} catch (e) {
console.log('Error:', e.message);
}
}

strictModeExample();
πŸ‘7🀣3❀2