If I use this code it makes from an number an string but I can't figure out why.
I want that this program adds 8+9 and makes = 17 not 89.
I try to learn this for as a hobby but I tried this almost a year ago and when I got stuck I never tried to make it work till now.
<!DOCTYPE html>
<html>
<body>
<h2>JavaScript Variables</h2>
<p id="demo_totaal"></p>
<p id="uitkomst1">8</p>
<p id="uitkomst2">9</p>
<script>
var a = document.getElementById("uitkomst1").innerHTML;
var b = document.getElementById("uitkomst2").innerHTML;
var total = a + b;
document.getElementById("demo_totaal").innerHTML = total;
</script>
</body>
</html>