javascript delete last 3 letters code example
Example 1: how remove last letter js
const text = 'abcdef'
const editedText = text.slice(0, -1) //'abcde'
Example 2: how to remove last three letters of word in js
str = str.slice(0, -3);
const text = 'abcdef'
const editedText = text.slice(0, -1) //'abcde'
str = str.slice(0, -3);