Skip to content

Commit eacd70f

Browse files
added solution of problem1
1 parent 41ab03a commit eacd70f

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

problem1-reverse-string.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,11 @@
55

66
// Input: "hello"
77
// Output: "olleh"
8+
9+
const str = "hello";
10+
11+
const revStr = (str) => {
12+
return str.split("").reverse().join("");
13+
};
14+
15+
console.log(revStr(str));

problem2-count-vowels.js

Whitespace-only changes.

0 commit comments

Comments
 (0)