Sort: Rank

How do you locate the first X in a string txt?
How do you locate the first X in a string txt? A) txt.find('X'); B) txt.locate('X'); C) txt.indexOf('X'); D) txt.countTo('X');
2022-10-19, 15312👍, 5💬

💬 2022-10-01 Ken: The answer is C.

💬 2021-05-22 Shubhamay Hazra: The answer is txt.indexOf('X') because when you want to find something in a string in a particular position, you have to use ind...

💬 2021-03-05 karthik: The content is purely software oriented and the quality of the content is good and it useful to software and some related to sof...

How can you add properties to an object?
How can you add properties to an object?
2013-10-23, 2268👍, 0💬

How many times will the following loop print the word loop to the screen?
How many times will the following loop print the word loop to the screen? var index = 0; while (index < 3) { window.document.writeln("loop" );index++; } A) 1 B) 2 C) 3 D) 4
2010-08-28, 3718👍, 0💬

  Sort: Rank