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
CHALLENGE


let symbol1 = Symbol('description');
let symbol2 = Symbol('description');

const obj = {
[symbol1]: 'value1',
[symbol2]: 'value2'
};

console.log(obj[symbol1]);
console.log(symbol1 === symbol2);
πŸ”₯4πŸ‘2
🀣18πŸ€”10πŸ‘7❀3🀩1
🀨 docxtemplater: Generate docx and pptx Documents from Templates

Generate Word and PowerPoint files dynamically by merging against templates (ideal for invoices, contracts, certificates, etc.) It’s open source (MIT or GPLv3), but the creator has a commercial version with more extensions (e.g. to work with Excel). GitHub repo and feature demos.

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

const wm = new WeakMap();
const obj1 = {};
const obj2 = {};
wm.set(obj1, 'object 1');
wm.set(obj2, 'object 2');
wm.delete(obj1);
console.log(wm.has(obj1));
πŸ‘9
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