Pregunta de entrevista de Aristocrat

Reverse the characters of the given string

Respuesta de la entrevista

Anónimo

16 ene 2025

function reverse(str){ if(str.length===1){ return str} return reverse(str.slice(1))+str[0] } }