Remove last character of string in jquery/javascript.
In this tutorial, I will explain how to remove last character of a string in javascript.To remove the last character of a string can be easily done by javascript functions

Example:How to delete last character from a string using javascript/jQuery?
<script language="javascript" type="text/javascript">
var string = 'Hello!';
var new_string = string.substring(0, string.length-1);//This will only removes the last character
alert(new_string);
</script>
Example2:
<script language="javascript" type="text/javascript">
var string = 'Hello!';
alert(string.slice(0, -1));//This will only removes the last character
</script>