Pergunta de entrevista da empresa Media.net

Reverse a string without inbuilt functions of JavaScript.

Resposta da entrevista

Sigiloso

28 de mai. de 2022

function revrsStr(str){ var a = ""; for(let i = str.length-1; i > 0; i++){ a +=str[i] } return a } console.log(revrsStr('JavaScript'));