Skip to content

Instantly share code, notes, and snippets.

View K3beros's full-sized avatar

Omokaro Abijah Davis K3beros

  • Lagos
View GitHub Profile
function reverseString(str) {
//initialize a new variable
var x = "";
//Use a for loop to loop through the string
for (var i = str.length; i >= 0; i--) {
x += str[i];
;
}