Why the value for the variable is declared inside as single quotes as 'john'? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why the value for the variable is declared inside as single quotes as 'john'?

if it is a string it is declared within double quotes as"john" or if no variable declaration then simply put as john?

20th Jul 2016, 5:59 AM
jason
3 Answers
0
You can use either double or single quotes for strings
20th Jul 2016, 9:40 AM
GlennV
0
k mr.glenn...thanks for ur response....
20th Jul 2016, 1:59 PM
jason
0
yes you can use single or double quotes dosn't matter
22nd Aug 2016, 3:24 PM
Manik Kore
Manik Kore - avatar