Pregunta de entrevista de 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.

Respuesta de la entrevista

Anónimo

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.