+ 9
I m new with all this....just tell me what wrong with this code?
https://code.sololearn.com/WI7Xnn1FtwAV/?ref=app I tried to make a simple calculator but its not working.....tell me where the error is?
11 Answers
+ 1
Well there is a whole lesson in javascript about DOM and Selectors and Events, you will get there soon, until then, check out the links
I left you, you have better explanation and DOM charts.
https://www.w3schools.com/jsref/met_document_getelementbyid.asp
+ 18
You Have Forgotten The Result Section!
+ 16
Nida Sister I Just Find Out The Result Problem But More I Can't understand Coz I Have Not Learnt That Language!
+ 6
dρlυѕρlυѕ plzz tell me bit more about this on message
+ 6
dρlυѕρlυѕ thank you....it started working in my browser
+ 5
https://code.sololearn.com/Wyh7Aebh2MOt/?ref=app
Go through these Document methods, try to understand them.
https://developer.mozilla.org/en-US/docs/Web/API/Document/getElementById
Cheers!
+ 5
Hoàng Nguyễn Văn let me try this
+ 3
I'm glad! Keep it up!
+ 3
Jason M.Azizi see my new code....it has a result section but thats not working plzz can u tell me what wrong with that.?
+ 2
You're having two errorenous versions of the same JS code, one in the HTML file, one in the JS file.
1/ Consider which syntax you're using. If you want the HTML syntax (<!-- code -->), you should include the script tag inside your comment. Otherwise, if your comment contains only the JS code and not the script tag, use JS syntax instead (/* code */).
2/ camelCase, parseFloat is a function, parsefloat isn't.
+ 1
Dear nida i have answered please check back