var Z;
var E;
Z=document.getElementById("X").value;
E=document.getElementById("Y").value;
I don't know why but I couldn't solve this problem If you run the codes, the following error appears in the console uncaught typeerror read properties of null (reading 'value')