JavaScript
32.1K subscribers
1.06K photos
10 videos
33 files
737 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
❓ CHALLENGE


const a = [1, 2, 3];
const b = a;

b[0] = 0;

console.log(a);
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘21🀣1412πŸ€”6
πŸ€”18❀9πŸ‘9🀣76🀩1
πŸ‘©β€πŸ’» React Aria 1.0: 40+ Accessible Components, Your Way

Anyone who follows Devon Govett (also of Parcel fame) on social media will know just how much he's put into this suite of components, and v1.0 is now here. If you’re building your own components and want to get accessibility right, this is for you. Devon explains a little more here.

ADOBE
Please open Telegram to view this post
VIEW IN TELEGRAM
❀64πŸ‘3
❓ CHALLENGE


async function asyncQuiz() {
console.log("Start");

const promise1 = new Promise((resolve) => {
setTimeout(() => resolve("Promise 1"), 1000);
});

const promise2 = new Promise((resolve) => {
setTimeout(() => resolve("Promise 2"), 500);
});

console.log(await promise1);
console.log(await promise2);

console.log("End");
}

asyncQuiz();
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ€”13πŸ‘129❀8
Y'all have been doing sql queries wrong. πŸ˜‚

Ashot Hovhannisyan
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ€”15🀣9❀5πŸ‘4
❓ CHALLENGE


function* gen() {
yield *[1,1];
yield 2;
yield 3;
}

const generator = gen();

console.log(generator.next().value);
console.log(generator.next().value);

for (const value of generator) {
console.log(value);
}
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘147πŸ€”4❀3
What is the output?
Anonymous Quiz
23%
Error
16%
1 2 3
39%
[1,1] 2 3
22%
1 1 2 3
πŸ‘117❀2🀩1
✌️ Top Front-End Tools Of 2023

Who doesn’t love a good front-end tool? In this roundup, you’ll find useful front-end tools that were popular last year and will help you speed up your development workflow. Let’s dive in!

Louis
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘12❀75🀩3
❓ CHALLENGE


function getArr() {
return Array.from(arguments);
}

const result = getArr(...[1, 2, 3]);

console.log(result);
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘1
What is the output?
Anonymous Quiz
22%
Error
31%
[[1],[2],[3]]
45%
[1,2,3]
2%
[1]
16πŸ‘11❀6πŸ€”6
StringZilla v3 is starting to look serious! Crushing C++ standard library by 3-20x is one thing... But superseding LibC implementations and potentially bringing them to other programming languages is what will make this library truly specialπŸ”₯

Any Rust and JS developers with C experience willing to implement the wrappers?

Ash Vardanian
7πŸ‘5❀2
CHALLENGE


const string = 'a1b2c3d4e5';

const result = string.match(/\d+/g).map(Number);

console.log(result);
➑️ Survay from Eindhoven University

Mentorship is a process in which a more experienced or more knowledgeable person (a mentor) helps to guide a less experienced or less knowledgeable person (a mentee). Relatively little is known about the practice of mentorship within software development contexts. For that reason, we would like to ask you a few questions about what mentorship means to you and what matters most in mentoring relationships.


The survey is expected to take 10-15 minutes to complete. Only the researchers involved in this study will see your responses. Your participation in this study is voluntary. You also do not have to answer any question that makes you uncomfortable. Participants must be 18+. For questions or comments about the survey, please reach out to Dr. Reed Milewicz ([email protected]) or Dr. Alexander Serebrenik ([email protected]). Clicking submit indicates that you consent to the use of your survey response data in our study.

For every survey completed, we pledge to donate $1 USD to an open-source 501(c)(3) non-profit organization of your choice.

Link to the survey: https://snl-survey.sandia.gov/surveys/Telegram-Javascript-Mentorship-Survey
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘6
✌️ πŸ˜‚
Please open Telegram to view this post
VIEW IN TELEGRAM
🀣80πŸ‘13🀩64πŸ€”2❀1
❓ CHALLENGE

function* fibonacci() {
let a = 0, b = 1;
while (true) {
yield a;
[a, b] = [b, a + b];
}
}

const fibSequence = Array.from({ length: 5 }, () => fibonacci().next().value);

console.log(fibSequence);
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘10πŸ€”5❀2
11❀6πŸ‘3
⛽️ npm in Review: A Retrospective in Numbers

From Socket comes a look at the past year from the perspective of the npm registry, focused largely on statistics (2.5 million live packages!), including download numbers, popular packages, as well as some β€˜quirky facts’ like the package with the most maintainers (554, if you're wondering.)

PHILIPP BURCKHARDT (SOCKET)
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘6❀51
❓ CHALLENGE

const matrix = [
[2, 4],
[6, 8],
];

const result = matrix.reduceRight((acc, row) => acc.concat(row.map(num => num * 2)), []);

console.log(result);
Please open Telegram to view this post
VIEW IN TELEGRAM
❀94πŸ‘3🀣3