<div id="d1"></div>
// js part
var div = document.getElemntById("d1")
var Name = "saidos"
function test(){
div.innerHtml=`<h1>${Name}</h1>`
}
// Add jquery to your html file
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
// Now select your elements using the $ sign
$(document).ready(function(){
$("button").click(function(){
$("p").hide();
});
});