I couldn't fix my code | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

I couldn't fix my code

https://sololearn.com/compiler-playground/cX6a2pLfV2Nm/?ref=app I looked at multiple example like this but I still couldn't find why mine didnt work. Can someone explain

4th Mar 2024, 7:27 PM
Lalala
Lalala - avatar
2 Answers
+ 5
You didn't define return type for the defined merhod.
4th Mar 2024, 7:51 PM
A͢J
A͢J - avatar
0
A͢J , so apparently when I was doing that code i haven't studied about return and didn't understand why didn't it work. Later on this morning i looked at return lesson and know I understand, thanks m8 preciate it
5th Mar 2024, 8:22 AM
Lalala
Lalala - avatar