<input type="button" value="button" id ="test">
let hensu = document.getElementById("test")
hensu.onclick = tuika;

function tuika(){
  alert('追加できました');
  console.log("sss")
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.