Posts by GGforGaming • 11 points
1 post
-
1
votes2
answers30696
viewsA: Javascript + HTML calculator
function writeNumber(elementId) { var outputValueTo = document.getElementById('field1'); if (outputValueTo.value == '0' || outputValueTo.value == 'Syntax error') { outputValueTo.value =…