
Goes Right After

In a given word you need to check if one symbol goes only right after another.
Cases you should expect while solving this challenge:
- one of the symbols is not in the given word - your function should return false;
- any symbol appears in a word more than once - use only the first one;
- two symbols are the same - your function should return false;
- the condition is case sensitive, which means 'a' and 'A' are two different symbols.
Input: Three arguments. The first one is a given string (string), second is a symbol (string) that should go first, and the third is a symbol (string) that should go after the first one.
Output: A logic value (boolean).
Examples:
assert.strictEqual(goesAfter("world", "w", "o"), true); assert.strictEqual(goesAfter("world", "w", "r"), false); assert.strictEqual(goesAfter("world", "l", "o"), false); assert.strictEqual(goesAfter("panorama", "a", "n"), true);