how to remove last space in 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)