English

Trace output of following JavaScript code. var str="Information Technology"; document.write(str.lastlndexOf("o"); - Information Technology

Advertisements
Advertisements

Question

Trace output of following JavaScript code.

var str="Information Technology"; document.write(str.lastlndexOf("o");

Options

  • 18

  • 19

  • 20

  • 21

MCQ

Solution

19

shaalaa.com
JavaScript Built-in Objects - String
  Is there an error in this question or solution?
Chapter 3: Advanced Javascript - Exercises [Page 51]

APPEARS IN

Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×