← Back to JavaScript exercises

28. Simple Calculator

Result appears here
button.onclick=()=>output.textContent=Number(input.value)+2;