+ 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

11th Feb 2018, 11:59 AM
🦋FEATHER🦋
🦋FEATHER🦋 - avatar
8 Answers
+ 6
@Jonathan Pizarra You are absolutlly right!
11th Feb 2018, 1:53 PM
Vitaliy Angelov (Rostov-on-Don)
Vitaliy Angelov (Rostov-on-Don) - avatar
+ 4
It should be: onclick="myfun()"
11th Feb 2018, 12:10 PM
Jonathan Pizarra (JS Challenger)
Jonathan Pizarra (JS Challenger) - avatar
+ 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.
12th Feb 2018, 5:21 AM
🦋FEATHER🦋
🦋FEATHER🦋 - avatar
+ 3
guys its working but why it is showing the default answer of switch case.
11th Feb 2018, 3:24 PM
🦋FEATHER🦋
🦋FEATHER🦋 - avatar
+ 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.
13th Feb 2018, 3:47 PM
🦋FEATHER🦋
🦋FEATHER🦋 - avatar
13th Feb 2018, 3:48 PM
🦋FEATHER🦋
🦋FEATHER🦋 - avatar
+ 1
You need to use parseInt() in the value. it's a string by default.
11th Feb 2018, 4:01 PM
Jonathan Pizarra (JS Challenger)
Jonathan Pizarra (JS Challenger) - avatar
+ 1
what I mean is use parseInt on 'var a' because it's a string.:😊 https://code.sololearn.com/WMJMtIGSdfoL/?ref=app
12th Feb 2018, 5:34 AM
Jonathan Pizarra (JS Challenger)
Jonathan Pizarra (JS Challenger) - avatar