[Solved] Trying to create a simple sum calculator


1) You can’t have a comma separated list of numbers in a number type input (at least in modern browsers), it has to be type="text

2) Your onclick="Sum()" is using a capitalized S, it should be onclick="sum()"

3) You have no div with the ID sum, so your output never shows.

New markup:

<input id="numb" type="text" /> 
<input type="button" value="button" onclick='sum()' /> 
<div id="sum"></div>

2

solved Trying to create a simple sum calculator