Find the number of days in a month using JavaScript
Calculate the number of days in a month for a given year using JavaScript.
The JavaScript article collection contains a wide variety of ES6 helper functions. It includes helpers for dealing with primitives, arrays and objects, as well as algorithms, DOM manipulation functions and Node.js utilities.
Calculate the number of days in a month for a given year using JavaScript.
Easily calculate the date of yesterday, today or tomorrow in JavaScript.
Binary numbers are a fundamental part of computer science. Learn how to convert between binary and decimal numbers in JavaScript.
Make sure to use the correct method when checking if a JavaScript object is an array.
Let's have a look at how to check if a string contains a substring in JavaScript.
Increase your JavaScript code's performance when working with the DOM by leveraging this simple trick.
JavaScript's instanceof operator can't be used with primitive values, but there are a some tricks that you can leverage to your advantage.
Search for substrings in JavaScript strings without worrying about case sensitivity.
Learn how to get the currently selected text in the browser using JavaScript.
Iteration in JavaScript can be done a handfuld of ways, most often using array methods, but sometimes a for loop is the best option.
Are you performing a lot of array operations? Maybe element removal is a performance bottleneck you can avoid.
Ever wanted to convert a tilde path to an absolute path? Here's how you can do it in JavaScript.
Learn how to compare the contents of two arrays to see if they contain the same elements regardless of order.
Have you ever tried to convert the string representation of a boolean to an actual boolean value? Here's a simple way to do it.
Use a simple JavaScript trick to validate a serialized JSON object.
The constructor is a crucial part of any JavaScript class, which is why you might want to take a closer look at what they return.
Ever wanted to create your own jquery-like query selector shorthand? Here's how!
Calculate the percentage of numbers in the given array that are less or equal to the given value.
Ever needed to move some elements to the end of an array? Here's a simple way to do it.
Replace all characters in a string, except for the ending characters, with a mask character.
Initialize and fill a JavaScript array with the specified values, quickly and easily.
Quickly and easily determine if a given JavaScript Date object is a weekday or weekend.
Learn how to level up your regular expressions game, with features such as backreferences, lookaheads and named groups.
Learn how to transpose a two-dimensional array in JavaScript.