+ 5

[Solved]How to take default value of a?

https://code.sololearn.com/WqaOExkzq02X/?ref=app I want to take default value of a, and willing to input value of b in function. I don't want to change order. I tried many times. I think there should be a way, because I think it is necessary.

11th Nov 2018, 8:11 PM
Roneel
Roneel - avatar
2 odpowiedzi
+ 7
Use undefined instead of null.
11th Nov 2018, 8:41 PM
Ulisses Cruz
Ulisses Cruz - avatar
+ 3
Thanks! I had thought for a moment but didn't tried, my bad.
11th Nov 2018, 8:43 PM
Roneel
Roneel - avatar