I’m trying to loop through an array of strings and for each element(string) in that array, change the character after the “_” underscore character to a “*” character. Strings are immutable so, pushing this all to a new array. The chain performs as expected when directly targeting the underscore for replacement: But the moment the actual intended function is pursued,
Advertisement
Tag: str-replace
How do I convert a string to spinal case in JavasScript?
I am stuck on this coding challenge Spinal Tap Case from freeCodeCamp. Essentially I don’t know how to get the last check to execute. This is the last check: spinalCase(“AllThe-small Things”) should …
Advertisement