In the given problem statement we are asked to truncate a string with the help of javascript functionalities. We can solve this problem with the help of Javascript's built?in functions slice() and substr(). Wha