Program Template
Name of program
Name of program
For each of the following, you should write Javascript functions that work on any input string, but you are not required to test the functions beyond what is presented in the skeleton.
In the following problems, you must use only: == indexing (str[index]), length, charAt() (indexing is usually easier than using charAt). Use console.log() for all output.
reverseA(str), reverseB(str), etc.
str itself. For example: str = 'cat' prints out as 'tac' (but on 3 separate lines in the console window)str so that the characters are in reverse orderstr in reverse order. Do not change str itself.