Pregunta de entrevista de Media.net

Reverse a string without inbuilt functions of JavaScript.

Respuesta de la entrevista

Anónimo

28 may 2022

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