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

https://code.sololearn.com/cpeD1LhNM7Vy/?ref=app

14th Mar 2023, 9:03 AM
Yash Daber
Yash Daber - avatar
3 ответов
+ 2
Post your code. Specify where you struggle
14th Mar 2023, 9:58 AM
Lamron
Lamron - avatar
+ 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.
14th Mar 2023, 9:58 AM
Otid Kartgepsut
Otid Kartgepsut - avatar
+ 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.
14th Mar 2023, 9:58 AM
Otid Kartgepsut
Otid Kartgepsut - avatar