const arr = "My name is Shweta Menon"
const reverseRec = (str) =>{
if(str.length < 1) return ""
return reverseRec(str.substring(1)) + str.charAt(0)
}
console.log(reverseRec(arr))
To embed this project on your website, copy the following code and paste it into your website's HTML: