JavaScript
32K subscribers
1.03K photos
10 videos
33 files
715 links
A resourceful newsletter featuring the latest and most important news, articles, books and updates in the world of #javascript πŸš€ Don't miss our Quizzes!

Let's chat: @nairihar
Download Telegram
Help us improve our newsletter by rating your experience from 1 to 5. Your input is invaluable in helping us deliver the best content possible!
πŸ‘11
We Want Your Feedback!
Anonymous Poll
14%
1
12%
2
18%
3
20%
4
35%
5
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.
Do you believe that one day we will reach 100K?
Anonymous Poll
84%
Hell Yeah!!!
16%
Definitely NO!
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
What is the output?
Anonymous Quiz
23%
0
51%
2
20%
1
6%
3
πŸ”₯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
✌️ JavaScript Weekly
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘4❀1πŸ”₯1
CHALLENGE

const obj = {
value: 1,
increment() {
this.value++;
}
};

const increment = obj.increment;
increment();

console.log(obj.value);
πŸ‘9
What is the output?
Anonymous Quiz
27%
1
53%
2
12%
undefined
9%
Error
🀣23❀5πŸ”₯4🀩2
Media is too big
VIEW IN TELEGRAM
πŸ“Œ The JavaScript Summit Armenia 2024 trailer is live!

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
😎 yocto-spinner: Tiny Terminal Spinner

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
What is the output?
Anonymous Quiz
78%
10, 20
12%
20, 20
6%
20, 30
4%
10, 30
πŸ‘10πŸ”₯6❀2
πŸ˜‰How to Implement the 2048 Game in JavaScript

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
What is the output?
Anonymous Quiz
50%
10
8%
5
29%
20
12%
Error
2πŸ€”14πŸ‘9πŸ”₯8❀2