
Find the closest number in an array JavaScript
12/11/2019Would you like to match the closest number in an array using JavaScript? Find out how to achieve this using both reduce() and sort().
Would you like to match the closest number in an array using JavaScript? Find out how to achieve this using both reduce() and sort().
Getting the difference between 2 numbers in JavaScript isn't as simple as it sounds. Let's look at 2 methods for reliably returning the difference.
Use Sass variables inside css variables and strings. Learn how to interpolate strings in JavaScript(es6), Sass and scss.
Learn how to check for valid HTML element tags by converting them to string representations with this simple JavaScript function.
Call a function using a string in JavaScript: a safe alternative to eval().
What are web components? Learn about web components, the shadow DOM, styling and lifecycle callbacks in this JavaScript tutorial series.
4 ways to convert array-like objects, such as HTMLCollection and NodeList, to JavaScript arrays for access to array methods like the forEach loop.
Learn how to use event listeners to detect and handle single and multiple keypress events in JavaScript. Add modifier keys to your application!
Using Bulma but don't know how to integrate it with Nuxt? I'll show you how to load Bulma into your Nuxt project with full control over variables.