I need to take two strings, compare them, and print the difference between them.
So say I have:
teamOne = \"Billy, Frankie, Stevie, John\" teamTwo = \"Bi
If the real string you are comparing are similar to the strings you provided, then this should work:
teamOneArr = teamOne.split(", ") => ["Billy", "Frankie", Stevie", "John"] teamTwoArr = teamTwo.split(", ") => ["Billy", "Frankie", Stevie"] teamOneArr - teamTwoArr => ["John"]