by @saigowthamr

How to remove first character from a string in JavaScript

Home » javascript » How to remove first character from a string in JavaScript

To remove the first character from a string we need to use the slice() method passing 1 as an argument in JavaScript.

Here is an example that removes the first character h from a string.

const string = "hello";

console.log(string.slice(1)); // "ello"