Pergunta de entrevista da empresa Aristocrat

Reverse the characters of the given string

Resposta da entrevista

Sigiloso

16 de jan. de 2025

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