Media.net interview question

Reverse a string without inbuilt functions of JavaScript.

Interview Answer

Anonymous

May 28, 2022

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