Then I prompted chatGPT again: Create the UI of calculator like buttons with the respective numbers and operation, and when clicked it calls the appropriate function with the required parameters. ChatGTP now gave me back a HTML, CSS and JS.