All Articles

Coding Challenge: Reverse a string in TypeScript

⁉️ What?

You need to reverse the provided string.

💻 Example!

Input -> TypeScript

Output -> tpircSepyT

📌 How?

et str = 'TypeScript';
let reversed = str.split('').reverse().join('');
console.log(reversed); // => `tpircSepyT`