Note: press F12 to see the code
You can see the complete code also in Repo
Main js lines/commands used:
document.querySelector('#p1').innerHTML = 'test'