1let toBeReversed: string = `.eslaf eb t'ndluow ecnetnes siht ,dehctiws erew eslaf dna eurt fo sgninaem eht fI`;
2
3let charArray: string[] = toBeReversed.split('');
4console.log(charArray);
5
6let reverseArray: string[] = charArray.reverse();
7console.log(reverseArray);
8
9let reversedArray: string = reverseArray.join('');
10console.log(reversedArray);
11
12output:
13
14If the meanings of true and false were switched, this sentence wouldn't be false.