@esso it is really easy in an array form.
function arrayReverse(){
var str = ["esso","peso"];
var arraylength = str.length;//u can use to string also.
for(var i = arraylength-1; i>=0; i--){
document.getElementById("here").innerHTML += str[i]+",";
}
}
don't forget to define <body onload="arrayReverse();"><p id="here"></p> on your HTML page.
uppercase and lowercase are as simple as those above. try to do research and it will also a best way to learn more n perfect.. hope my comments are helpful to you! |