Which of the following code samples will correctly search for the word "for" in a string?
Correct Answer: var str="This is test for javascript search !!!"; if(str.search("for") != -1) { alert("true"); } else { alert("false"); }
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More HTML 5 MCQ Questions