Bite sized JavaScript tutorials for busy developers Follow us on Substack: masteringjs.substack.com

null
A good heuristic for building your docs: whenever someone asks you a question, you should reply with a link to your docs. If you don't have a good answer in your docs, write one and link to it. #JavaScript #CodeNewbie
1
2
4
182
Mobile is great and all But desktop is king for developer-focused content #TechWriting #100DaysOfCode
1
1
Pro tip: add a little alert on your frontend when NODE_ENV !== 'production'. Make it glaringly obvious if you're using prod keys locally or dev keys in prod document.createElement() is helpful for that 👉 masteringjs.io/tutorials/fun… #JavaScript #CodeNewbie
1
Use `Promise.all()` combined with array destructuring if you're declaring 2 variables with async values in parallel More about Promise.all() 👉 masteringjs.io/tutorials/fun… #JavaScript #CodeNewbie
1
1
🆕 Use the Ternary Operator for Conditionals in Vue masteringjs.io/tutorials/vue… #JavaScript #CodeNewbie #VueJS
1
1
🆕 Conditionally Add an Object to an Array in JavaScript masteringjs.io/tutorials/fun… #JavaScript #CodeNewbie
2
1
Want to omit a property from an array of objects without lodash? `.map()` with a spread operator is what you're looking for This code creates a copy of `preTripPhotos` with then `_id` property omitted from every object 😎 #JavaScript #CodeNewbie
1
Mastering JS retweeted
Our number one tip for better tech writing: stop using the word "it" Don't say "its failing", at least say "the test is failing" Don't say "its undefined", say "v is undefined" or "the return value is undefined" "It" is usually too vague #JavaScript #CodeNewbie #TechWriting
4
5
7
Our number one tip for better tech writing: stop using the word "it" Don't say "its failing", at least say "the test is failing" Don't say "its undefined", say "v is undefined" or "the return value is undefined" "It" is usually too vague #JavaScript #CodeNewbie #TechWriting
4
5
7
The Mastering JS website is 100% open source. Check it out on GitHub, and please star our repo! github.com/mastering-js/mast…
Spread operator makes it easier to conditionally add keys to a JavaScript object. For example, here's how you can add an extra property to a Stripe `paymentIntents.create()` call if a flag is set More about spread operator 👉 masteringjs.io/tutorials/fun… #JavaScript #CodeNewbie
1
2
1
Love our tutorials? Sign up for our weekly newsletter and never miss a tutorial! getrevue.co/profile/masterin…
Mastering JS retweeted
🆕 Validate Emails using Regex in JavaScript masteringjs.io/tutorials/fun… #JavaScript #CodeNewbie
1
3
4
The Mastering JS website is 100% open source. Check it out on GitHub, and please star our repo! github.com/mastering-js/mast…
🆕 How to Copy Content to the Clipboard in Vue masteringjs.io/tutorials/vue… #VueJS #CodeNewbie
1
Mastering JS retweeted
🆕 JavaScript Copy to Clipboard: masteringjs.io/tutorials/fun… #JavaScript #CodeNewbie
1
2
2
Love our tutorials? Sign up for our weekly newsletter and never miss a tutorial! getrevue.co/profile/masterin…