Hapus karakter pertama JavaScript
let str = 'Hello';
str = str.slice(1);
console.log(str);
/*
Output: ello
*/
Important Ibex
let str = 'Hello';
str = str.slice(1);
console.log(str);
/*
Output: ello
*/
let str = " hello";
str = str.substring(1);
var newStr = str.substring(1);
var s1 = "foobar";
var s2 = s1.substring(1);
alert(s2); // shows "oobar"
var oldStr ="Hello";
var newStr = oldStr.substring(1); //remove first character "ello"
let str = " hello"
str = str.substring(1)