Home » HTML » Html miscellaneous » Question
  1. For testing we should use ________.
    1. window.alert()
    2. document.write()
    3. innerHTML
    4. console.log()
    5. None of these
Correct Option: B

For testing we used document.write() in JavaScript. If we use document.write() after HTML document, it will delete all existing HTML. This method can only be used for testing purposes.



Your comments will be displayed only after manual approval.