I have an array and a name
var name = "Karen"
var arr = [ 
"Karen",
"Ronald",
"Mcdonald"
];
// Code here
I want to check if name is indexed in arr.
If it is then console.log(true) but if not I only want to console.log(false); one time.
I'm logging false every time the name doesn't match that is my problem.
 
     
    