I have to write a function that returns all users with a second letter of "h" in their name.
var users = ["Roman","Sherry","Sandrah","Shamaika"];
I started to code something like this but it is not working.
function letter(){
var index = users.indexOf("h") == [1];
return(index);
}
I am new to JavaScript and I am not sure where to start.