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
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
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
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
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
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