I have a function that accept two parameters string and index. How do I write a code that will return the character at that index without using javascript built in method ch
Create the function as below:
function getIndex(input, i) { return input.substring(i, i+1); } getIndex("great", 1)
I hope that helps!