let str = "1-3-2"let arStr = str.split("")arStr[2] = '2'arStr[4] = '3'str = arStr.join("")//str is "1-2-3"console.log(`str is "${str}"`)