Can a single quote i.e (var name: 'john') contain more that one word?? Eg (var name: 'john matara')......Am tremendously curious | Sololearn: Learn to code for FREE!
+ 1

Can a single quote i.e (var name: 'john') contain more that one word?? Eg (var name: 'john matara')......Am tremendously curious

it crossed my mind and i believe it has crossed yours

20th Apr 2017, 1:35 PM
Denzel Matara
Denzel Matara - avatar
2 Answers
+ 3
Yes, it can. It's a string and can have as much whitespace you want. 😉
20th Apr 2017, 2:45 PM
lulugo
lulugo - avatar
+ 1
Yup, it can
20th Apr 2017, 2:44 PM
Luka Kldiashvili
Luka Kldiashvili - avatar