Domanda di colloquio di Provar

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

Risposta di colloquio

Anonimo

10 lug 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.