This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var toBeReversed = process.argv[2]; | |
function reverse(toBeReversed) { | |
var revOutput = ""; | |
for (var i = toBeReversed.length -1; i >= 0; i--) { | |
revOutput += toBeReversed[i]; | |
} | |
return revOutput; | |
} | |
console.log(reverse(toBeReversed)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<style> | |
body { | |
margin: 0px; | |
padding: 0px; | |
} | |
</style> | |
</head> |