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
function getIndex(text, i) { return text.slice(i,i+1); } console.log(getIndex('great', 1)); // --> r