How the answer is 1111? | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 3

How the answer is 1111?

It's a Challenge question. I have entered correct answer but don't know it came. Can anyone please explain. See the below Screenshot. https://photos.app.goo.gl/EUm84Fbc7mKVbRWt8

31st Aug 2020, 7:20 PM
A͢J
A͢J - avatar
4 ответов
+ 9
Yes AJ, you are right
31st Aug 2020, 7:41 PM
Vladimir (temporary inactive)
Vladimir (temporary inactive) - avatar
+ 8
function print() has the default output equals 1 so 1.print(1).1 => 1.11.1 => 1111
31st Aug 2020, 7:36 PM
Vladimir (temporary inactive)
Vladimir (temporary inactive) - avatar
+ 7
Vladimir It means print function return 1? So here print(1) will print 1 and echo print will give output 1 so finally output will be 11. Right?
31st Aug 2020, 7:40 PM
A͢J
A͢J - avatar
2nd Sep 2020, 12:38 PM
Спиридон Решетов
Спиридон Решетов - avatar