From 38577a1fea382018906622debc178cdf87df53ba Mon Sep 17 00:00:00 2001 From: chris_l Date: Thu, 3 Dec 2020 09:55:43 -0500 Subject: [PATCH] Solution to reverse string problem --- index.html | 11 +++++++++++ script.js | 8 ++++++++ 2 files changed, 19 insertions(+) create mode 100644 index.html create mode 100644 script.js diff --git a/index.html b/index.html new file mode 100644 index 0000000..5c92a67 --- /dev/null +++ b/index.html @@ -0,0 +1,11 @@ + + + + + + Document + + + + + \ No newline at end of file diff --git a/script.js b/script.js new file mode 100644 index 0000000..1a29f86 --- /dev/null +++ b/script.js @@ -0,0 +1,8 @@ + +function reverseString(str) { + return str.split("").reverse().join(""); +} + +console.log(reverseString("hello")); +console.log(reverseString("SuperDeeDuper")); +