Check out example codes for "remove first character from string". It will help you in understanding the concepts better.

Code Example 1

let str = 'Hello';
 
str = str.slice(1);
console.log(str);
 
/*
    Output: ello
*/

Code Example 2

String str = "Hello World";
String str2 = str.substring(1,str.length());

Code Example 3

s = "hello"
print s[1:]

Learn ReactJs, React Native from akashmittal.com