Add | sum=x+y |
Concatenate | unite="x"+"y" |
Determine | result="x+y" |
<script> var total=0; total=eval("21.23+32.74"); document.write(total) </script> | Displayed |
<script> function domath(obj) {obj.IDOUTPUT.value=eval(obj.IDINPUT.value);} </script> <form name="IDFORM"> <input type="text" name="IDINPUT" size=20> <input type="number" name="IDOUTPUT" size=20> <input type="button" value="Result" onClick=domath(this.form)> <input type="reset" value="Clear"><form> |
obj.INPUT.value |
JS Test-Bed 1 - - JS Test-Bed 2
<< Previous | Next >> |