Contact: aviboots(AT)netvision.net.il
32,310 questions
42,485 answers
573 users
function ReverseString(s: string) { return [...s].reverse().join(''); } let s: string = "TypeScript C C++ C# Java"; console.log(ReverseString(s)); /* run: "avaJ #C ++C C tpircSepyT" */
function ReverseString(s: string) { return s.split('').reverse().join(''); } let s: string = "TypeScript C C++ C# Java"; console.log(ReverseString(s)); /* run: "avaJ #C ++C C tpircSepyT" */