Andorian
4
Q:

remove first character from string

let str = 'Hello';
 
str = str.slice(1);
console.log(str);
 
/*
    Output: ello
*/
6
String str = "Hello World";
String str2 = str.substring(1,str.length());
3
let str = 'Hello';
 
str = str.substring(1);
console.log(str);
 
/*
    Output: ello
*/
4
s = "hello"
print s[1:]
2

New to Communities?

Join the community