Which of these lines of code would replace the content of a webpage with “Saaaaaakib”?

  • document.innerHTML("Saaaaaakib");
  • document.body.html = "Saaaaaakib";
  • document.body.innerHTML = "Saaaaaakib";
  • document.innerHTML = "Saaaaaakib";
  • document.body.html("Saaaaaakib");

Note/Explanation

document.body.innerHTML = "Saaaaaakib"; line of code would replace the content of a webpage with "Saaaaaakib".

Leave a Reply

© 2018 Micro Solutions Bangladesh and/or MCQ Academy.