<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<input id="x1"><br>
<input id="x2">
<button onclick="obr()">add</button>
</body>
<script type="text/javascript">
var arr = [];
function obr(){
var x1 = document.getElementById("x1").value;
var x2 = document.getElementById("x2").value;
arr.push(x1*x2);
console.log(arr)
}
</script>
</html>