-
For testing we should use ________.
-
- window.alert()
- document.write()
- innerHTML
- console.log()
- 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.