This code reverses the string and I want to add “ay” at the end of the word.
var string = prompt(“Enter string:”);
var strLen = string.length;
for(var i = strLen-1; i >= 0; i--){
document.writeln(string[i]);
}
Blancer.com Tutorials and projects
Freelance Projects, Design and Programming Tutorials
This code reverses the string and I want to add “ay” at the end of the word.
var string = prompt(“Enter string:”);
var strLen = string.length;
for(var i = strLen-1; i >= 0; i--){
document.writeln(string[i]);
}