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

null
Replying to @Netlify
Love our tutorials? Sign up for our weekly newsletter and never miss a tutorial! getrevue.co/profile/masterin…
There aren't many pain points when working with @Netlify , but single page app redirects are one of 'em. Here's a script we use to generate a netlify.toml with a redirect rule for every SPA route #JavaScript #CodeNewbie
1
1
3
The Mastering JS website is 100% open source. Check it out on GitHub, and please star our repo! github.com/mastering-js/mast…
Lots of confusion out there re: promises vs thenables. A promise is an instance of the Promise class A thenable is an object that has a then() function A promise is a thenable. But a thenable isn't necessarily a promise 📖 masteringjs.io/tutorials/fun… #JavaScript #CodeNewbie
1
1
1
Love our tutorials? Sign up for our weekly newsletter and never miss a tutorial! getrevue.co/profile/masterin…
2 quick tips for better tech writing: 1. Shorter, snappier sentences. No 'and' 2. Avoid using pronouns like 'it' "it works and the return result is correct but when it runs it fails and on top of failing its undefined" 😕 #JavaScript #CodeNewbie #TechWriting
1
2
1
The Mastering JS website is 100% open source. Check it out on GitHub, and please star our repo! github.com/mastering-js/mast…
Love our tutorials? Sign up for our weekly newsletter and never miss a tutorial! getrevue.co/profile/masterin…
You can use `class` and `:class` side-by-side on elements in Vue. `:class` conditionally adds classes. Here's some code from a navbar we wrote recently. Add `active` class if current route matches Learn more 👉 masteringjs.io/tutorials/vue… #JavaScript #VueJS
1
1
🆕 How to Fix "Buffering timed out after 10000ms" Error in Mongoose: masteringjs.io/tutorials/mon… #JavaScript #CodeNewbie
1
1
Object spread operator is also helpful for shallow cloning, or for shallow cloning with some fields overwritten. More about shallow cloning in JavaScript 👉 masteringjs.io/tutorials/fun… #JavaScript #CodeNewbie
1
1
The Mastering JS website is 100% open source. Check it out on GitHub, and please star our repo! github.com/mastering-js/mast…
Easy replacement to lodash's `omit()` function in vanilla JavaScript: spread operator. More about Lodash 👉 masteringjs.io/lodash #JavaScript #CodeNewbie
1
1
2
Love our tutorials? Sign up for our weekly newsletter and never miss a tutorial! getrevue.co/profile/masterin…
Use Sinon's stub() function to stub out API requests in tests, so you don't need to make requests to external APIs. Learn more 👉 masteringjs.io/tutorials/sin… #JavaScript #CodeNewbie
1
1
2
Replying to @vuejs
Love our tutorials? Sign up for our weekly newsletter and never miss a tutorial! getrevue.co/profile/masterin…
Use `v-for` on `options` to define a select with variable options in @VueJS: masteringjs.io/tutorials/vue… #VueJS #CodeNewbie
1
2
2