Provar interview question

Make a function in JS that will return a second non-repeating character from a string, you can't use any in-built function.

Interview Answer

Anonymous

10 Jul 2024

Create 1 object that will iterate over a string, and track all the occurrences of the alphabet. they iterate over that object and return the second item which has a value of 1.