var stringToReverse = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890';
function reverseString1 (str) {
return str.split('').reverse().join('')
}
function reverseString2(str) {
let reversed = '';
for (const character of str) {
reversed = character + reversed
}
return reversed
}
function reverseString3(str) {
return str.split('').reduce((reversed, character) => character + reversed, '')
}
function reverseString4(str) {
return [...str].reverse().join('')
}
reverseString1(stringToReverse)
reverseString2(stringToReverse)
reverseString3(stringToReverse)
reverseString4(stringToReverse)