0

Why does extepnal function look like this? Do not write first string from function tyf().

https://code.sololearn.com/WmCBAn1Kx3qk/?ref=app

25th Nov 2017, 7:47 AM
Sergey Z
Sergey Z - avatar
3 ответов
+ 2
Because tyf() will be executed after the loop.. tyf() returns a text with a <br /> Tag. Then the text will appear in the for-loop. The for-loop executes five times. And when the number outputs 5. The text was output four times.
25th Nov 2017, 5:43 PM
David
David - avatar
+ 1
It's no problem. I answer mostly unanswered questions.
25th Nov 2017, 5:55 PM
David
David - avatar
0
Thank you for your answer.
25th Nov 2017, 5:48 PM
Sergey Z
Sergey Z - avatar