Javascript – Separating odd numbers in a string with '-'
I am attempting to take a string of numbers and iterate through that number. When there are two odd numbers adjacent to one another, I want to separate them with '-'. For example, 999463 would become 9-9-9463. const str =…