π€£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
π€38π₯15π13π€£8β€1
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
What is the output?
Anonymous Quiz
37%
Error: undeclaredVariable is not defined
10%
undefined
32%
10
21%
Error: Cannot assign to undeclared variable 'undeclaredVariable'
3β€12π9π€4