I'm new at Javascript coding and I'm trying to make my first calculator: it has three text boxes where users type the first number they want to add on the first text box, and the second number on the second text box, and then they click on a button and the result of the adding of these two numbers appears on the third text box. But when I do 1 + 1 it results 11 instead of 2 and when I do 2 + 2 it results 22 instead of 4. I know that this is a very newbie question but can you guys please help me? What am I doing wrong? Also sorry for my bad english, I'm brazilian. Here is the JS code:
<script>
function AddResolve() {
document.getElementById('AddResult').value = document.getElementById('AddInputOne').value + document.getElementById('AddInputTwo').value
}
</script>
And here is the HTML code of the three boxes and the button:
<input type="text" id="AddResult">
<input type="text" id="AddInputOne">
<input type="text" id="AddInputTwo">
<input type="button" id="AddButton" onclick="AddResolve()">