We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da807d6 commit 054d1f7Copy full SHA for 054d1f7
FirstReverse.js
@@ -0,0 +1,20 @@
1
+// Have the function FirstReverse(str) take the str parameter being passed and
2
+// return the string in reversed order.
3
+// For example: if the input string is "Hello World and Coders" then your program should return the string sredoC dna dlroW olleH.
4
+// Examples
5
+// Input: "coderbyte"
6
+// Output: etybredoc
7
+// Input: "I Love Code"
8
+// Output: edoC evoL I
9
+function FirstReverse(str) {
10
+ var temp = '';
11
+ for (var i = 0; i<str.length; i++) {
12
+ temp = str[i] + temp;
13
+ }
14
+ // code goes here
15
+ return temp;
16
+
17
18
19
+ // keep this function call here
20
+ FirstReverse(readline());
0 commit comments