Sometimes, we want to limit the amount of number shown after a decimal place in…
Month: April 2022
Sometimes, we want to round to nearest hour using JavaScript Date Object. In this article,…
Sometimes, we want to convert inline SVG to base64 string with JavaScript. In this article,…
Sometimes, we want to convert a JavaScript object to an array. In this article, we’ll…
Sometimes, we want to add email validation with JavaScript. In this article, we’ll look at…
Sometimes, we want to clone a div and change its ID with JavaScript. In this…
Sometimes, we want to get the text node after an element with JavaScript. In this…
Sometimes, we want to measure text width and height without rendering with JavaScript. In this…
Because JavaScript is a single-threaded language, synchronous code can only be executed one line at…
Sometimes, we want to get a key in a JavaScript map by its value. In…