+ 2

What's wrong with this code

https://code.sololearn.com/c1b6LKSks28S/?ref=app this code gives an error in the console, can someone help me fix it (its now fixed)

13th Apr 2022, 6:31 AM
b̶l̶a̶n̶k̶
b̶l̶a̶n̶k̶ - avatar
5 Respostas
+ 1
What are you attempting to achive with the function? Are you trying to add two numbers?
13th Apr 2022, 6:38 AM
Arthur_Dent
Arthur_Dent - avatar
+ 1
Do you want the result like this?
13th Apr 2022, 6:41 AM
Tremor
Tremor - avatar
0
Yes
13th Apr 2022, 6:39 AM
b̶l̶a̶n̶k̶
b̶l̶a̶n̶k̶ - avatar
0
I think they are trying to assign the numbers to a and b and than return the result
13th Apr 2022, 6:43 AM
Arthur_Dent
Arthur_Dent - avatar