I have already completed basic HTML, CSS, JavaScript Tutorials on FreeCodeCamp.com. Now I am into Basic Algorithm Scripting challenges.
First challenge is to reverse the Strings.
Here is my Solution which I managed to complete in first attempt.
Reverse the input String
First challenge is to reverse the Strings.
Here is my Solution which I managed to complete in first attempt.
Reverse the input String
function reverseString(str){ arr = str.split('').reverse().join(''); return arr; } reverseString("hello");
No comments:
Post a Comment