let str = "meguenniwalid"; //will remove d from str by using slice() str = str.slice(0, -1); //output console.log(str); //meguenniwali