π15π€7π€£6π₯3
The irony is that while Node popularized JavaScript on the server (though Netscape was doing it in the 90s) this modern, standardized cross-runtime approach doesnβt work on Node ...yet ;-)
Marvin Hagemeister
Please open Telegram to view this post
VIEW IN TELEGRAM
β€7π4π₯4
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
What is the output?
Anonymous Quiz
57%
'value1' false
14%
'value2' true
24%
'value1' true
5%
'value2' false
π€£18π€10π7β€3π€©1
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
π€£15π9β€5π€4
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
π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
π22π₯4β€2
CHALLENGE
function example() {
console.log(a);
var a = 10;
console.log(a);
}
example();
π2π€2
What is the output?
Anonymous Quiz
10%
10, undefined
10%
0, 10
71%
undefined, 10
9%
ReferenceError, 10
β€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
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
What is the output?
Anonymous Quiz
17%
false false true false
12%
true true true false
67%
true false true false
3%
false false false false
π€18π7π€©7β€6
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