if statement not respecting character '"' quotes at all:
I am trying this if statement:
if((character === ' ' && currentlyFormingPhrase.length === 0) || (character === '"' && currentlyFormingPhrase.length === 0))
even variations like this:
if((character === ' ' && currentlyFormingPhrase.length === 0) || (character === '\"' && currentlyFormingPhrase.length === 0))
if((character === ' ' && currentlyFormingPhrase.length === 0) || (character === "'" && currentlyFormingPhrase.length === 0))
if((character === ' ' && currentlyFormingPhrase.length === 0) || (character === "\'" && currentlyFormingPhrase.length === 0))
Don't work...
I still get outputs like this:
"” and that being around good people"
But I need:
"and that being around good people"
I am iterrating through every character but that does not matter for the question...