+ 2
What is wrong in this?
guys i am not familiar with JavaScript so i am facing this type of common difficulties. i dont think it has any error but no result i can see when i run it. https://code.sololearn.com/W8aD53HXK9mi/?ref=app
8 Answers
+ 6
@Jonathan Pizarra You are absolutlly right!
+ 4
It should be: onclick="myfun()"
+ 4
@Jonathan it still not working . If you don't mind will you please do correction on my code and send it to me please. i am really sorry to disturb you again, as you know i am not so familiar with JavaScript.
+ 3
guys its working but why it is showing the default answer of switch case.
+ 2
@Jonathan
i have created a simple Calculater which is working on Sololearning but it is not working in My pc what is the error in it, Actually the answer is coming correct but it just come in a blink way just cames the answer and everything cleaned up.Sorry it is not working in sololearning also but answer is correct.
+ 1
You need to use parseInt() in the value. it's a string by default.
+ 1
what I mean is use parseInt on 'var a' because it's a string.:😊
https://code.sololearn.com/WMJMtIGSdfoL/?ref=app