Somebody please help me. I'm not sure what I'm doing wrong here:
I'm trying to add up some numbers.
Instead the adding the 2 numbers it is just placing the 2 numbers next to each other; as in: 3 + 3 = 33 (instead of 6) !!!
If I replace the + with a * then it returns the correct result (9)
What is happening?
<p id="A">3</p>
<p id="B">3</p>
<p id="score"></p>
<script>
var AA = document.getElementById("A").innerHTML;
var BB = document.getElementById("B").innerHTML;
var result = AA + BB;
document.getElementById("score").innerHTML = result;
</script>