frindds help me i have made local calucleter but it's not working | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

frindds help me i have made local calucleter but it's not working

please correct my code https://code.sololearn.com/Wd2ZdO5D4tCu/?ref=app

28th Feb 2020, 6:45 AM
๐—ฃ๐—ฎ๐˜„๐—ฎ๐—ป ๐—ž๐˜‚๐—บ๐—ฎ๐—ฟ ๐Ÿ…Ÿ๏ธŽ๐Ÿ…š๏ธŽ
๐—ฃ๐—ฎ๐˜„๐—ฎ๐—ป ๐—ž๐˜‚๐—บ๐—ฎ๐—ฟ ๐Ÿ…Ÿ๏ธŽ๐Ÿ…š๏ธŽ - avatar
2 Answers
+ 3
Check your second value. You are getting first value in second variable. var num2=document.getElementById("num1").value; here should be ("num2") instead of ("num1")
28th Feb 2020, 6:50 AM
AอขJ
AอขJ - avatar
+ 1
Thanks ๐Ÿ˜Š๐Ÿ˜Ž๐Ÿ˜Š๐Ÿ˜Š๐Ÿ˜Š๐Ÿ˜Ž for correct answer
28th Feb 2020, 6:56 AM
๐—ฃ๐—ฎ๐˜„๐—ฎ๐—ป ๐—ž๐˜‚๐—บ๐—ฎ๐—ฟ ๐Ÿ…Ÿ๏ธŽ๐Ÿ…š๏ธŽ
๐—ฃ๐—ฎ๐˜„๐—ฎ๐—ป ๐—ž๐˜‚๐—บ๐—ฎ๐—ฟ ๐Ÿ…Ÿ๏ธŽ๐Ÿ…š๏ธŽ - avatar