+ 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

10th Sep 2018, 11:21 AM
Coder X
Coder X - avatar
7 ответов
+ 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)
10th Sep 2018, 12:07 PM
ODLNT
ODLNT - avatar
+ 4
hai, what language were you using?
10th Sep 2018, 11:27 AM
Krysto Foxik 🐥
Krysto Foxik 🐥 - avatar
+ 4
Yep.
15th Sep 2018, 12:18 AM
ODLNT
ODLNT - avatar
+ 3
Tomáš Vrkota might help you
10th Sep 2018, 11:35 AM
Krysto Foxik 🐥
Krysto Foxik 🐥 - avatar
+ 2
but how do I get him to answer
10th Sep 2018, 11:37 AM
Coder X
Coder X - avatar
+ 2
ODLNT thanks ...but now I was adding something new to the code so if it doesn't work can I refer to you
14th Sep 2018, 10:22 PM
Coder X
Coder X - avatar
+ 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
16th Sep 2018, 6:32 PM
Coder X
Coder X - avatar