In this tutorial, you will learn how to truncate number to 2 decimal places in javascript. It is pretty much common to truncate a number to 2 decimal places for the sake of readability. For a newbie developer, it can be a bit tricky to truncate a number to 2 decimal places. There are numerous
In this tutorial, you will learn how to remove first space from string in javascript. By first space, we simply mean the very first occurrence of a space in a string. For a newbie developer, it can be a bit tricky to remove the first space from a string. There are numerous ways to remove
In this tutorial, you will learn how to remove leading slash from string in javascript. A slash (/) is also known as forward slash and it is very commonly seen in URLs. For a newbie developer, it can be a bit tricky to remove the leading slash from a string. There are numerous ways to
In this tutorial, you will learn how to remove trailing slash from URL in javascript. A slash (/) is also known as forward slash and it is very commonly seen in URLs. For a newbie developer, it can be a bit tricky to remove the trailing slash from a URL. There are numerous ways to
In this tutorial, you will learn how to remove last slash from URL in javascript. A slash (/) is also known as forward slash and it is very commonly seen in URLs. For a newbie developer, it can be a bit tricky to remove the last slash from a URL. The last slash in URL