Filter by topic
To get the last N characters of a string, call the `slice` method on the string, passing in `-n` as a parameter, e.g. `str.slice(-3)` returns a new string containing the last 3 characters of the original string.
Misko Hevery, creator of AngularJS, recently announced the beta availability of Qwik, his new web framework. Qwik claims to build applications that feel fast regardless of application size. In most ca
How to generate a SHA-256 hexadecimal hash using Node.js and JavaScript in the browser.
Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine.
To sort an array of objects by a boolean property, call the `sort()` method on the array, passing it a function. In the function, convert the 2 boolean values to numbers and subtract the first number from the second.
Log messages between pages and iframes or pop-ups. Tagged with debugging, debug, webdev.
JavaScript offers many ways to check if a string contains a substring. Learn the canonical way, and also find out all the options you have, using plain JavaScript
window.postMessage allows for sending data messages between two windows/frames across domains. Essentially window.postMessage acts as cross-domain AJAX between windows/frames.
Find out how to sort an array of items by date value in JavaScript
What is the difference between passing by value and passing by reference in JavaScript.
How Svelte makes state management easier.
Post found in Make Things