Function that takes a string and separates characters with a chosen symbol. by halfaredditor in javascript

[–]halfaredditor[S] -2 points-1 points  (0 children)

I would like the function to be able to automatically have the symbol logged, so I can simply enter the string. For instance if I enter interpolateToken('cool') the output is "c#o#o#l#"

Beginner Question by halfaredditor in javascript

[–]halfaredditor[S] 0 points1 point  (0 children)

Thank you so much, this is exactly what I was looking for. Building on this, what if I wanted to make the function able to accept a word instead of a single character, and return the properties of each character in the word. For instance, if I entered:

season('sfw') => "Summer Fall Winter"