I am new to JavaScript, right now I'm just practicing in hope to get better. I have been given a task to use this form to take in 2 numbers and output the sum as an alert. I have tried looking around online but the way that this code is structured makes it difficult for me to understand how it is supposed to work. Can anyone assist me on this?
<form>
<input id="x" size=3> + <input id="y" size=3>
<input type=submit value=" = " onclick="calculate()">
</form>