this is my first JavaScript program and I hit my first road block. can anyone tell me where am I doing wrong. I want to get the sum of first two boxes on third box after clicking the button
<!DOCTYPE html>
<html>
<body>
<h1>My First JavaScript</h1>
<p>Please input a number.</p>
<script>
function myFunction()
{
var x=document.getElementById("demo").value;
var y=document.getElementById("demo1").value;
var z=parseInt(x)+parseInt(y);
document.getElementById("demo2").value=Z;
}
</script>
<input id="demo" type="text">
<input id="demo1" type="text">
<input id="demo2" type="text" value="">
<button type="button" onclick="myFunction()">Click Me!</button>