7 posts tagged with "code"
Quick JavaScript Tip: Emptying an array without losing reference
April 17, 2020, 1 min read, tagged as: javascriptcodequick tip
Quick JavaScript Tip: Overwriting an array's length property gives us an easy way to truncate and clear its content.
Quick JavaScript Tip: Storing unique data using Sets
April 13, 2020, 1 min read, tagged as: javascriptcodequick tip
Quick JavaScript Tip: Sets in JavaScript are a great way to store unique values. You can even convert Arrays to Sets to deduplicate them.
5 things you didn't know you could do with only HTML
April 06, 2020, 1 min read, tagged as: javascripthtmlcode
I've been seeing finding a lot of cool things that HTML can do by itself recently and decide to compile a list of a few of them (width code…
Quick JavaScript Tip: TypeScript checking in JavaScript
April 03, 2020, 1 min read, tagged as: javascripttypescriptcodequick tip
Quick JavaScript Tip: If you're writing JavaScript in Visual Studio Code, add // @ts-check to the top of your file to gain some benefits…
Why you should be destructuring your method parameters in ES6
April 02, 2020, 1 min read, tagged as: javascriptcodequick tip
A lot of times when we're defining methods and creating classes, we use "config objects" to group parameters in a neat way so that we don't…
Every ES6 Array method you must know to be a JavaScript Expert
March 26, 2020, 6 min read, tagged as: javascriptcode
Arrays are ordered list-like objects with basic methods that allow us to perform traversals and mutations. Before ES6, libraries like jQuery…
A Review of Web Components in 2020
March 18, 2020, 2 min read, tagged as: javascriptcodeweb components
According to Google, somewhere between 5% and 8% of all page loads today use one or more web components. That makes web components one of…