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
CHALLENGE
function* numberGenerator() {
yield 1;
yield 2;
yield 3;
}
const gen = numberGenerator();
console.log(gen.next().value);
console.log(gen.next().value);
console.log(gen.next().value);
console.log(gen.next().value);
π11β€2π₯1
What is the output?
Anonymous Quiz
19%
1, 2, 3, 3
9%
1, 2, undefined, undefined
61%
1, 2, 3, undefined
11%
1, 2, 3, 4
π5π€3
Now that you can use the ES modules (almost) everywhere, itβs worth understanding how to package them up for use with npm. Axel digs into everything you need to know and shares some useful tools too.
Dr. Axel Rauschmayer
Please open Telegram to view this post
VIEW IN TELEGRAM
π4β€3π₯1
CHALLENGE
const symbol1 = Symbol('symbol');
const symbol2 = Symbol('symbol');
const obj = {};
obj[symbol1] = 'value1';
obj[symbol2] = 'value2';
console.log(obj[symbol1]);
π4
π8β€3π₯2
CHALLENGE
function outerFunction() {
let x = 10;
function innerFunction() {
x += 5;
console.log(x);
}
return innerFunction;
}
const closureFunc = outerFunction();
closureFunc();
closureFunc();
π€12π10
π10π€9π€£4β€2