Tim Mouskhelichvili • May 3, 2022 • 2 minutes to read
JavaScript supports many different operators (for example, the concatenation operator) to help developers work with objects. One of those operators is the JavaScript power operator. Developers have two distinct ways of using the power operation. Firstly, you can use [...]
Tim Mouskhelichvili • April 27, 2022 • 3 minutes to read
Often, developers need to create multiline strings in JavaScript. A multiline string provides better readability for developers and gives the ability to make edits more quickly. Since introducing template literals in the 2015 version of JavaScript, it has been [...]
Tim Mouskhelichvili • April 16, 2022 • 2 minutes to read
JavaScript has a lot of different useful built-in functions to help developers solve common problems (for example, parse a string into a number, round a number to two decimals place, and many more). One of those common tasks is [...]
Tim Mouskhelichvili • April 13, 2022 • 3 minutes to read
JavaScript provides a lot of different built-in functions to help solve common problems (for example, round a number to 2 decimals places, get the time, and many more). One of those common tasks is when developers need to convert [...]
Tim Mouskhelichvili • April 13, 2022 • 2 minutes to read
In JavaScript, developers oftentimes find themselves in situations where they need to find the length of a string. Whether it is for validation, to extract a substring, or for a conditional statement condition, developers need to know how to [...]
Tim Mouskhelichvili • March 7, 2022 • 3 minutes to read
In JavaScript, there is a lot of different ways to capitalize the first letter of a string. You can capitalize the first letter with a combination of built-in javascript functions, with regex expressions and, even with CSS. Read this [...]
Tim Mouskhelichvili • March 7, 2022 • 5 minutes to read
In JavaScript, the slice() function is part of both the Array and the String prototype. This function is used to select items or characters based on the provided indices. In this article, you will find all the information needed [...]
Tim Mouskhelichvili • March 7, 2022 • 3 minutes to read
To get the time in JavaScript, you will need to work with the built-in Date object. The Date object represents a moment in time in a platform-independent manner and has a lot of helper functions that will help the [...]
Tim Mouskhelichvili • March 7, 2022 • 2 minutes to read
When it comes to rounding a number to two decimal places in JavaScript, a developer has a lot of options. It can be done with: The toFixed() function. The Math.round() function. A helper function. The lodash round() function [...]
Tim Mouskhelichvili • March 7, 2022 • 3 minutes to read
In JavaScript, you have a lot of options when it comes to the concatenation of strings. You can use: The + operator. Template literals. The built-in concat() function of String. The built-in join() function of Array. In this article [...]