how to subtract last character from a string code example
Example: remove last character string
let str = "Hello world"
let strWithoutLastChar = str.substring(0, str.length - 1)
let str = "Hello world"
let strWithoutLastChar = str.substring(0, str.length - 1)