how to slice first character in javascript code example Example: how to remove first character from string in javascript str = str.substring(1);