1var str = 'USDYEN'
2// add a / in between currencies
3// var newStr = str.slice(0, 3) + ' / ' + str.slice(3)
4
5// var newStr = str.slice(3) // removes the first 3 chars
6// var newStr = str.slice(0,3) // removes the last 3 chars
7var newStr = str.slice(0,3) + ' / ' + str.slice(3) // removes the first 3 and adds the last 3
8
9console.log(newStr)
10// => USD / YEN