// take input string
// create empty output string
// remove last letter of input string
// add that letter to empty string
// keep doing this until the input string is empty
// return output string

function reverse(str) {
  var newString = ""
  for (var i = str.length; i > 0, i--)
    newString += str[i]
}
@@ -51,13 +51,14 @@
 %0A// 
-remov
+get th
 e la
@@ -70,16 +70,20 @@
 tter of 
+the 
 input st
@@ -147,18 +147,44 @@
 s until 
-th
+we've gone through the entir
 e input 
@@ -193,17 +193,8 @@
 ring
- is empty
 %0A// 
@@ -215,16 +215,17 @@
 string%0A%0A
+%0A
 function
@@ -240,16 +240,17 @@
 (str) %7B%0A
+%0A
   var ne
@@ -261,16 +261,18 @@
 ing = %22%22
+;%0A
 %0A  for (
@@ -293,21 +293,26 @@
 ngth
+-1
 ; i %3E
+=
  0
-,
+;
  i--)
+ %7B
 %0A   
@@ -332,9 +332,252 @@
  str%5Bi%5D%0A
+  %7D%0A  %0A  console.log(newString);%0A  return newString%0A%7D%0A%0A%0A// driver code to test program%0A%0Avar test1 = reverse(%22Ellie%22);%0Avar test2 = reverse(%22elephant%22);%0Avar test3 = reverse(%22unencumbered%22);%0A%0Aconsole.log(test1) %0A%0Aif (1==1) %7B%0A  console.log(test2)%0A
 %7D

Add driver code to test function