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

null
JavaScript doesn't support named parameters, but destructuring objects can let you fake named parameters. Just make the first parameter an object and destructure: masteringjs.io/tutorials/fun… #javascript #CodeNewbie
1
6
14
JavaScript lets you use `typeof` and `void` with parenthesis, leading some devs to think that `typeof` and `void` are functions. They're not! Learn more: masteringjs.io/fundamentals/… masteringjs.io/fundamentals/… #JavaScript #CodeNewbie
1
Did you know you can use `URL.createObjectURL()` to create a preview of the file the user selected with an `<input type="file">`? Here's how this works in @VueJS : masteringjs.io/tutorials/vue… #VueJS #javascript #CodeNewbie
4
29
19
JavaScript numbers have a `toString()` function that supports different bases. That means converting decimal to binary in JavaScript is as easy as `toString(2)`. Learn more: masteringjs.io/tutorials/fun… #javascript #CodeNewbie
2