Do you need a day off from Newsletter?
Anonymous Poll
37%
YES!
44%
NO!
19%
Post only during the working days!
π6
Would you pay 1$ per month? (To prevent sponsored posts)
Anonymous Poll
20%
Yes I will pay 1$/month as I don't like sponsored posts.
80%
No, sponsored posts are OK for me.
3β€3π2π₯2
CHALLENGE
const obj = {
count: 0,
increment() {
this.count++;
},
getCount() {
return (() => this.count)();
}
};
obj.increment();
obj.increment();
console.log(obj.getCount());
π12π₯5π€£2
π₯17π5π€3π€£2
Please open Telegram to view this post
VIEW IN TELEGRAM
π€£112π7π₯6π€2
CHALLENGE
const obj = {
data: [1, 2, 3],
getData() {
return this.data.map(x => x * 2);
}
};
const newData = obj.getData.bind({ data: [4, 5, 6] })();
console.log(newData);
π8β€2
π11β€8π€5
CHALLENGE
const obj = {
value: 1,
increment() {
this.value++;
}
};
const increment = obj.increment;
increment();
console.log(obj.value);
π9
π€£23β€5π₯4π€©2
Forwarded from JavaScript Summit Armenia
Media is too big
VIEW IN TELEGRAM
It was an awesome event, and weβre excited to share some of the best moments with you. Huge thanks to everyone who joined us and helped make it happen.
See you next year at JavaScript Summit Armenia 2025!
Please open Telegram to view this post
VIEW IN TELEGRAM
2π5β€2π€©2
Fresh from the one-man module powerhouse that is Sindre Sorhus comes a new project: a tiny, as simple-as-possible terminal spinner/progress control. (βYoctoβ is a metric prefix that sits below nano, pico, femto, atto, and even zepto..)
Sindre Sorhus
Please open Telegram to view this post
VIEW IN TELEGRAM
β€2π2π₯1
CHALLENGE
const obj = {
num: 10,
getValue() {
return this.num;
},
getUpdatedValue() {
return (() => this.num + 10)();
}
};
console.log(obj.getValue());
console.log(obj.getUpdatedValue());
π€£11π6π₯3
π10π₯6β€2
Ania is back with one of her usual easy to follow walkthroughs of implementing a complete game in JavaScript. This time itβs the 2048 sliding puzzle game. (Two weeks ago she did Tic-Tac-Toe as well.)
Ania KubΓ³w
Please open Telegram to view this post
VIEW IN TELEGRAM
2π12β€6π₯1
CHALLENGE
let num = 5;
function change() {
let num = 10;
return function() {
return num;
};
}
const getValue = change();
num = 20;
console.log(getValue());
β€2π2
2π€14π9π₯8β€2
Prisma is a popular declaratively-driven ORM in the Node.js / TypeScript world and its new version makes it possible to write raw SQL queries in a type-safe way.
Nikolas Burk
Please open Telegram to view this post
VIEW IN TELEGRAM
3π₯10π5β€2
CHALLENGE
function outer() {
var x = 1;
function inner() {
var x = 2;
function deeper() {
console.log(x);
}
return deeper;
}
return inner();
}
const fn = outer();
fn();
2π₯8π€5π4
π5β€3π₯2