function cap(str){return str.charAt(0).toUpperCase() + str.slice(1);} console.log(cap(['h','g','i',' e','n'].reverse().join('') + '!'));
0
1
0
0
0