Skip to content

Instantly share code, notes, and snippets.

View hacktivist123's full-sized avatar
🏠
Working from home

Shedrack akintayo hacktivist123

🏠
Working from home
View GitHub Profile

Keybase proof

I hereby claim:

  • I am hacktivist123 on github.
  • I am akintayoshedrack (https://keybase.io/akintayoshedrack) on keybase.
  • I have a public key whose fingerprint is 2C6D E887 D342 D9D8 C9C7 0672 0EFE FC0C 4715 5944

To claim this, I am signing this object:

//Given a String, return a new string with the reversed order of characters
// We'll be impementing it with 4 different solutions, to test out each solution just un-comment it
//solution 1
function reverse (str){
const arr = str.split('');
arr.reverse();
return arr.join('');
}