0
I wanna to ask that I create a code of calculator it runs but when I click on my output to enter the number but it doesn'twork
3 ответов
+ 2
Post your code. Specify where you struggle
+ 1
It sounds like you've created a calculator code, but when you try to input numbers, the code isn't responding. Here are a few potential reasons why this could be happening:
Check the HTML layout of your calculator interface to ensure that the button associated with the number input is set up correctly. Make sure that clicking on the button triggers the correct function to allow number input.
Double-check that the event listener for the button is set up correctly, and that it's listening for a click event. If not, it may not be triggering your number input function.
+ 1
Make sure that your number input function is working as expected. You can add console.log statements to your code to see if the function is getting called and to check the value of the input.
Verify that the code you wrote to handle the number input is executed within the context of the HTML DOM element. If you used a selector to get the button or input element, make sure that it is referencing the correct element.
Without seeing your actual code, it can be hard to pinpoint the exact issue. However, double-checking these areas may help you identify the problem and get your calculator working.