window.onload=init;
function init(){
let button = document.querySelector("#buttonh1");
button.addEventListener("click",showInfo);
var c=document.getElementById("#myCanvas");
var ctx=c.getContext("2d");
ctx.fillRect(100,100,150,75);
}
function showInfo(){
let input1 = document.querySelector("#input1");
let h1 = document.querySelector("#h1");
h1.innerHTML="Welcom "+input1.value;
let div2= document.querySelector("#div2");
let h2 = document.createElement("h2");
h2.innerHTML="Your score : 0";
div2.appendChild(h2);
input1.value ="";
}