Why the answer is 0? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 17

Why the answer is 0?

It's a challenge question and found answer 0 but don't know how. Can anyone please explain? Check the attached Screenshot. https://photos.app.goo.gl/oE8XPESjPi7kcP539

4th Aug 2020, 4:40 PM
A͢J
A͢J - avatar
3 Answers
+ 15
In echo statement you can not use plus sign to join two strings.
4th Aug 2020, 4:50 PM
Syedha
Syedha - avatar
+ 13
To concatenate we use '.' symbol'+' is for numbers. Here string as a number is zero. Adding two strings is 0 + 0=0
4th Aug 2020, 4:48 PM
Brahmeswara Rao
Brahmeswara Rao - avatar
+ 7
Thanks everyone I got now.
4th Aug 2020, 5:13 PM
A͢J
A͢J - avatar