+ 1
(Solved) Kotlin code doubt
Hi guys, I'm new to coding plz help on this codes Why below code shows no output https://code.sololearn.com/cVO5R8ZSlx2Z/?ref=app But following code shows output i desired https://code.sololearn.com/cIFtMq68YpoX/?ref=app Only difference between two codes is đđđ { } Plz help guys
1 Answer
+ 1
The first declares a function that isn't called so never executed. If you add () on the end of the line, it will be called.