79097576

Date: 2024-10-17 10:13:07
Score: 1
Natty:
Report link

To access inner html you need to use below defined code

let myElement = document.getElementById('example');
let contents = myElement.innerHTML;
console.log(contents);

It will work for you

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Dhaval Patel