Correct Answer: txt.indexOf('X');
Explanation:
Note: This Question is unanswered, help us to find answer for this one
JavaScript Skill Assessment
Your Skill Level: Poor
Retake Quizzes to improve it
More JavaScript MCQ Questions
What value is returned when a Confirm box is cancelled?
What does the following line of code do?
Which statement is True for Behavioral design patterns?
Correct way to create an Object
A closure is a function defined inside another and has access to the variable which is declared and defined in parent function scope?
A javascript variable prefixed with a $ is:
function b(x, y, a) { arguments[2] = 10; alert(a); } b(1, 2, 3); What is alerted?
Right way to combine two arrays into a new array? var a = ['a', 'b', 'c']; var b = ['d', 'e', 'f'];
What's the output? if ('foo') { console.log('foo' === false); console.log('foo' === true); }
Difference between using call() and apply() to invoke a function with multiple arguments?
JavaScript MCQs | Topic-wise