#Remove last #two #characters from given string using #slice in #javascript. There are some more methods to remove last two characters.
var fruits = ["Orange", "Strawberry", "Banana", "Orange", "Mango"];
var myBest = fruits.slice(-3, -1);
For more follow this link.
http://www.atozexams.com/example/java-script/remove-last-two-characters-from-given-string-using-24.html
...