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
π€£48β€4π3π₯3
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
Did you know Oracle formally owns the βJavaScriptβ trademark? There have been a few efforts to change this over the years (most recently via this open letter) but Oracle isnβt listening. The Deno team has now formally filed a petition to cancel the trademark which Deno claims is fradulent because Oracle used screenshots of Node.js, a project Oracle doesnβt even own, as evidence of the trademarkβs use.
Deno
Please open Telegram to view this post
VIEW IN TELEGRAM
β€6π6π₯5
CHALLENGE β
const obj = {
a: 1,
b: function() {
return this.a;
}
};
const b = obj.b;
console.log(b());
Please open Telegram to view this post
VIEW IN TELEGRAM
π11
π17π€5π₯3β€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
π6β€4π₯2
CHALLENGE β
function* gen() {
yield 1;
yield 2;
return 3;
}
const g = gen();
console.log([...g]);
Please open Telegram to view this post
VIEW IN TELEGRAM
β€3π2
π7π₯5β€3
Please open Telegram to view this post
VIEW IN TELEGRAM
π5β€2π₯1
CHALLENGE β
const nums = [1, 2, 3];
const res = nums.reduce((acc, val) => acc + val, "");
console.log(typeof res);
Please open Telegram to view this post
VIEW IN TELEGRAM
π6
π13β€6π₯2