Please open Telegram to view this post
VIEW IN TELEGRAM
👍5❤4
CHALLENGE ❓
const arr = [1, 2, 3];
arr[-1] = 10;
console.log(arr.length, arr[-1]);
Please open Telegram to view this post
VIEW IN TELEGRAM
❤9👍4
👍14🔥7❤6🤔4
Many developers prefer to eschew complex, modern build processes and use JavaScript in a more old-school way. You can definitely get by without a build system, and Julia explores some ways to import libraries in such a setup.
Julia Evans
Please open Telegram to view this post
VIEW IN TELEGRAM
👍7🔥4❤2
CHALLENGE ❓
const x = (() => {
try {
return 10;
} finally {
return 20;
}
})();
console.log(x);
Please open Telegram to view this post
VIEW IN TELEGRAM
👍3❤1
👍20🤣17🤔9❤5🔥3🤩3
If you’ve got a variety of elements and you want users to be able to select them in groups, individually, or even in multiple groups, this lets you offer that functionality easily. Can be used in a vanilla fashion or with integrations for P/React or Vue.js.
Simon Reinisch
Please open Telegram to view this post
VIEW IN TELEGRAM
👍10🔥3❤1
CHALLENGE ❓
const obj = {};
Object.defineProperty(obj, "prop", {
value: 42,
writable: false
});
obj.prop = 100;
console.log(obj.prop);
Please open Telegram to view this post
VIEW IN TELEGRAM
❤1
👍18❤4🤩4🔥1
Please open Telegram to view this post
VIEW IN TELEGRAM
👍6❤4🔥3
CHALLENGE ❓
const arr = [1, 2];
arr.length = 0;
console.log(arr[0]);
Please open Telegram to view this post
VIEW IN TELEGRAM
👍1
👍17🤣15❤4🤩4🔥1
Please open Telegram to view this post
VIEW IN TELEGRAM
🤔8👍2🔥1
CHALLENGE ❓
const obj = { a: 1 };
Object.seal(obj);
obj.b = 2;
console.log(obj.b);
Please open Telegram to view this post
VIEW IN TELEGRAM
🤣11❤5👍3
🔥15👍8🤣4❤2🤩2
Work with complex numbers, fractions, units, matrices, symbolic computation, etc. A long standing library now, but continuing to get frequent updates. GitHub repo.
Jos de Jong
Please open Telegram to view this post
VIEW IN TELEGRAM
❤10🔥2👍1
CHALLENGE ❓
console.log(0.1 + 0.2 === 0.3);
Please open Telegram to view this post
VIEW IN TELEGRAM
👍14🤔7❤3
🤣38🤔26👍8🔥5❤3