Adarsh M (@adarshm07) header
Adarsh M (@adarshm07) profile picture

Javascript

Thalassery, Kerala, India
Joined May 2014
Photo by Adarsh M (@adarshm07)Photo by Adarsh M (@adarshm07)Photo by Adarsh M (@adarshm07)Photo by Adarsh M (@adarshm07)Photo by Adarsh M (@adarshm07)Photo by Adarsh M (@adarshm07)Photo by Adarsh M (@adarshm07)Photo by Adarsh M (@adarshm07)Photo by Adarsh M (@adarshm07)Photo by Adarsh M (@adarshm07)
Adarsh M retweeted
every time you return a new Promise in an async function your cpu gets a little warmer
Do you realize that if an async function returns a Promise, you are returning a nested Promise? This is because the "async" prefix automatically makes the function return a "hidden" Promise. Whatever you "return" from an async function is used as the value to resolve that "hidden" Promise. But if you return another Promise, you create a promise chain! It's not immediately apparent to you, as the user of that function, but that's what's happening. new Promise((resolve) => { resolve(new Promise((resolve) => resolve(5)) }) Well, now you know.
7
9
2
174
18,704
Adarsh M retweeted
I’m excited about turbopack (vercel’s Rust-based successor to webpack). A few thoughts:
17
274
33
2,380
Frontend Development Fundamentals: JavaScript Array Splice Method Explained (With Visuals) 🧵👇 1.
39
95
4
649
Sharing some exciting news! @VueSchool_io is offering FREE access to ALL of its courses on 1 2 October. That's 800 lessons covering Vue.js 3, Pinia and much more! Including the awesome Vue.js 3 Masterclass! Sign up for the Free Weekend: vueschool.io/free-weekend
1
2
📌 Coding Tip — JavaScript String Search Methods 🎨
35
170
7
1,033
Full stack web development coding project ideas — And the qualities they allow you to demonstrate to hiring managers 🧵👇
66
394
6
1,859
⚛️ React tip: did you know that you can use the `key` prop to "reset" individual components? They're not only for lists! Changing the key creates a new instance of the component. No more useState/useEffect juggling for these resetting use-cases. Demo: codesandbox.io/s/using-keys-…
42
163
14
1,069
Useful JavaScript Patterns 🚀 How to make correct data updates in React, Redux, or any other immutable context. [🧵]
22
202
3
809
Browser-native deep object cloning in JS is finally here, and it's awesome structuredClone() can: - copy deeply nested data - handle many data types like Map/Set/Regex/etc - even handle circular references Performance is great as well ⚡️
17
218
20
1,048
Replying to @DrSJaishankar
@DrSJaishankar @PMOIndia Dear Sir, I'm rasagnya my brother kadari akhil from warangal is been missing in Germany magdeburg .He is studying masters in Otto von Guericke University magdeburg.He is drown in the river its been 48hrs. No proper information. Please help us
14
64
7
23
Replying to @GermanyinIndia
@GermanyinIndia @GermanyDiplo @eoiberlin I'm rasagnya my brother kadari akhil from warangal is been missing in Germany magdeburg .He is studying masters in Otto von Guericke University magdeburg.He is drown in the river its been 48hrs. No proper information. Please help us
7
69
4
21
Replying to @narendramodi
@narendramodi Dear Sir,I'm rasagnya my brother kadari akhil from warangal is been missing in Germany magdeburg .He is studying masters in Otto von Guericke University magdeburg.He is drown in the river its been 48hrs. No proper information. Plz help us
18
67
4
23
⚡ CSS Grid Ultimate Cheatsheet ⚡
67
472
19
2,133
Chrome DevTools Tip💡 You can take screenshots of different parts of a website using Chrome DevTools. To open the command menu, use Ctrl + Shift + P or Cmd + Shift + P (Mac), and type "screenshot."
24
20
3
150
#Day3 - @algo_expert learning to write the best solutions.
#Day2 using @algo_expert, started with DS today.
JavaScript projects for beginners to polish your concepts👩‍💻 👇A thread🧵
37
255
7
1,022