This function checks if a character is a vowel. If it is, it returns true. Otherwise, it returns false. Where should return false; be written in the code?
function checkVowel(character){
var vowels = ["a", "e", "i", "o", "u"];
for(var i=0; i< ; i++){
if(vowels[i] == character){
return true;

1) After the for loop
2) Before the for loop
3) Inside the if statement
4) Outside the function