JSFiddle - React, Tailwind, and code Playground
by rexonms
JavaScript
/*
* Due to an API bug we are getting reversed text
* Write a function that takes an array of reversed strings and returns an array of unreversed strings
*/
const strings = ["selciheV cirtcelE muimerP", "ssenisuB ro emoH ruoy rewoP ylbaniatsuS"]
function fixReversedStrings(ar) {
return(ar)
}
console.log(fixReversedStrings(strings))