<!DOCTYPE html>
<html>
<body>
<button id="one">Try it</button>
<h1>JavaScript Functions</h1>
<p id="demo"></p>
<script>
var x=document.getElementById("one").addEventListener("click", onefunction);
function onefunction(){
//document.getElementById('demo').innerHTML=x;
return 1;
}
please review the code provided above.
//**enter code here**
I want the value 1 to be returned to var x