If $v1 = “Cdata”, I want to get the output only “data” to remove the first character “C”.
How could I remove the first character from the string in JavaScript?
To remove the first character from string JavaScript, apply this code.
<script> var v1 = "Cdata"; var v2 = v1.substring(2); alert(v2); console.log(v2); </script>
Username
Password
Remember Me
Lost your password?
Username or E-mail:
Log in