TAG

Javascript

Convert srt to text with regex JavaScript [SOLVED]

The srt format, which stands for SubRip Subtitle, is a common format for storing subtitles in a text file. In this article, we will show you how to convert

By olorunfemiakinlua · 4 min read · JavaScript

How to use/avoid JavaScript infinite loop? [SOLVED]

In JavaScript, an infinite loop is a loop that continues to run indefinitely without ever terminating. This can happen when the condition that is being tested

By olorunfemiakinlua · 3 min read · JavaScript

JavaScript Math.toRadians | Convert Degrees to Radians

In JavaScript, we have a Math object that provides tons of methods to achieve certain mathematical operations. Unlike Java, there is no math.toradians method

By olorunfemiakinlua · 2 min read · JavaScript

How to use JavaScript Set add() Method? [SOLVED]

In JavaScript, if you want a collection of unique values in a similar structure as an array, there is a special object that provides such functionality - the

By olorunfemiakinlua · 2 min read · JavaScript

Using less than or equal to in JavaScript [SOLVED]

One of the different comparison operators is the less than equal to operator (>=) operator. In this article, we will discuss how to use the less than or

By olorunfemiakinlua · 2 min read · JavaScript