Skip to content

Latest commit

 

History

History
14 lines (12 loc) · 594 Bytes

README.md

File metadata and controls

14 lines (12 loc) · 594 Bytes

Js Problems

Word-Reverse Solution

const ReverseFunc = (ele) =>{
    console.log([...ele].reverse().join(""))
}

ReverseFunc("omar") //ramo
  • First We Need To Think About What We Needs To Use To Solve The Problems, To Find The Clue
  • Second We Used [...(Input)] To Switch The Word Characters To Array
  • Third We Used The Reverse() Func To Reverse The Array Characters
  • Last Step We Used The Join("") Method To Switch Again To String.