Can .Write(Line), be used instead of returning the value? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Can .Write(Line), be used instead of returning the value?

2nd Jul 2016, 10:54 AM
Frazer
Frazer - avatar
2 Answers
0
It depends. WriteLine simply writes text to console but "return" gives you the value with which you can later work with. For example you could save it to variable for later use. I hope you understand me a little bit.
13th Jul 2016, 9:56 AM
Ondřej Drtina
Ondřej Drtina - avatar
0
writline is a method I think we can call the return value
27th Sep 2016, 4:27 PM
Tarun