+ 2
Please help me with the code, it does work on my editor
8 ответов
+ 15
+ 11
1. Enclose your JS code inside the Calc function. The code does not run as the function is not found.
2. Parenthesis are not closed for parseInt for variables a and b.
3. You forgot to add # to querySelector while assigning the result value from calculate to result div.
+ 11
Peter
You are calling a function Calc() on button click, but there isn't any function in your code.
So you need to define that function like this:
function Calc() {
// add your code from JS tab
}
+ 3
Nova
Thanks alot
+ 2
Nova
Thanks for 2 and 3
But I don't understand the enclosure your referring to
+ 2
Ipang
Thanks
+ 1
Nova
Please is there any way u can do it and link it to me🙏
Cus its not still working