4. Your 'if'' statement


#1

In your 'if' statement, I wrote this program

/*jshint multistr:true */

var text = "hey Ankit, how are you doing Ankit and why you are so sad Ankit?";
var myName = "Ankit";
var hits = [];

for (var i = 0; i < text.length; i ++){
if (text[i] === "A"){
console.log("Ankit);
}
}

when I try to Run The Program, It is showing error message like:
Oops, try again. There was a problem with your syntax.


#2

speech marks missing and semi colons from last bracket