This javascript function takes a string and reverses it. Assumably without using .reverse();
The function will ask for input and then the result will be in the console.