JavaScript Corner retweeted
ECMAScript proposal: JSON modules
2ality.com/2021/06/json-modu…
JavaScript Corner retweeted
Today is a big day for npm workspaces 😎
🚀 [email protected]
In this release we just shipped the ability to add new dependencies to a workspace, along with most of the missing workspace features!
⬇️ Get it now:
npm install -g npm
See more in the changelog: github.com/npm/cli/releases/…
JavaScript Corner retweeted
🔥 You can submit forms from a button outside of the form tag by using the form attribute
JavaScript Corner retweeted
#JavaScript tip for today:
When destructuring, you can set a default value for one variable to be the value of another one from the same assignment.
JavaScript Corner retweeted
Reminder – the destructuring trick for swapping values also works with Array elements:
function swap(arr: number[], i: number, j: number) {
[arr[i], arr[j]] = [arr[j], arr[i]];
}
exploringjs.com/impatient-js…
JavaScript Corner retweeted
💡TIP: Empty string, null, and undefined are all valid keys for Map
#javascript #100DaysOfCode
JavaScript Corner retweeted
If you have 5 minutes to spare, I made a video on the eventListener() #javaScript inbuilt method > youtu.be/KyX2dIwHssQ Hope it's clear enough and easy to understand #100DaysOfCode #coding #CodeNewbie
JavaScript Corner retweeted
How does TypeScript work? The bird’s eye view
2ality.com/2020/04/typescrip…
JavaScript Corner retweeted
🔥 #OneDevMinute JavaScript Destructuring Assignment:
Unpack values/properties into distinct variables.
🔘 Values from arrays.
🔘 Properties from objects.
#CodeNewbie #100DaysOfCode
JavaScript Corner retweeted
Strategies for migrating to TypeScript
2ality.com/2020/04/migrating…
JavaScript Corner retweeted
TC39 panel at JSConf Hawaii 2020, moderated by Cassidy Williams [47-min. video] @cassidoo @tc39
youtube.com/watch?v=7UmhSRWQ… ^ar
JavaScript Corner retweeted
How to make a 'READ MORE' function for your website in pure #JavaScript #HTML and #CSS! A break from my typical #JavaScriptGames. Video, along with 2 more, coming this week on https://xitter.gq/t.co/Ox7mkpuFXM 💕 #100DaysOfCode #coding #StayHome
JavaScript Corner retweeted
Typing functions in TypeScript
2ality.com/2020/04/typing-fu…
JavaScript Corner retweeted
Avoid stacking serial network requests. #JavaScript
JavaScript Corner retweeted
Why I no longer write classes in #Javascript:
I don't need them.
Instead, I use:
1. Plain objects (data only, no behavior)
2. Pure functions (no side-effects, no outside dependencies)
Easy to test. ✅
Easy to understand. 🧠
Easy to compose. 🏘
JavaScript Corner retweeted
Javascript quiz ➡ 7
What is the result of the length?
Just solve it & leave your answer in the comment section.
#100DaysOfCode #freeCodeCamp
JavaScript Corner retweeted
ECMAScript 2020: the final feature set
2ality.com/2019/12/ecmascrip…
























![// Flatten one level: const array = [1, [2, [3]]]; array.flat(); // → [1, 2, [3]] // Flatten recursively until the array contains no // more nested arrays: array.flat(Infinity); // → [1, 2, 3]](https://pbs.twimg.com/media/EUaZKPsUwAAJhLh.jpg?name=small&format=webp)