+ 5
[OFF-TOPIC ] I need help with my code ( " calculator")
I've done this code before and it worked but now I've forgotten exactly how I did it. And before you tell me to just copy it from where I did it before and it worked, I did it in my school's I.C.T lab and I'm on vacation. https://code.sololearn.com/W4Dof9L5XwRf/?ref=app
7 Respostas
+ 3
Codezilla
First -(HTML) onclick=fun("bye") this syntax is wrong for onclick it should be onclick="bye()"
(Javascript)
Second - d=parseInt(document.getElementById("numOne").vlue) and
var e=parseInt(document.getElementById ("numTwo").vlue)
The main problem with both lines are that (vlue) should be (value) next you need to correct the getElementById ("numTwo") it should be getElementById("numTwo") there should not be any space between the d and the first paren '(' next for simplicity you should move both lines to the bye() function.
Lastly, the code inside of the bye function is wrong for what you trying to do alert("d+e") should be alert(d+e)
+ 4
hai, what language were you using?
+ 4
Yep.
+ 3
Tomáš Vrkota might help you
+ 2
but how do I get him to answer
+ 2
ODLNT thanks ...but now I was adding something new to the code so if it doesn't work can I refer to you
+ 2
ODLNT u see in my code there is "none" beneath everything...now I want to make that "none" change to the answer any time u click add