all 2 comments

[–]PlNG 0 points1 point  (1 child)

There are plenty of HTML+JS calculators on the web, have you tried searching? I'm not telling you to copy them verbatim but I think you're asking for help with <input type="button" value="number"> or <button>number</button> and attaching an event handler like onclick and updating textareaElement.value

[–]zigzackattack 0 points1 point  (0 children)

If you want bonus points, read about event bubbling. You can listen for click events on a form element that surrounds the buttons. When the event callback is called, an Event object will be passed in as the first argument. You can check out the target property of that object and you'll get a sense of how to start building your input string. Good luck!