Write a JavaScript program that reverse a string.
Code:
function stringReverse(inputstring) { return inputstring.split('').reverse().join(''); } var result = stringReverse('helloworld'); console.log(result);