What is the use-difference between single quotes and quotes? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is the use-difference between single quotes and quotes?

In what case I can use anyone for a string (sorry if my English is not good)

6th Oct 2019, 12:19 AM
CodeKid
1 Answer
+ 1
Depends on the language. In JavaScript and also in Python, you can use single quotes or double quotes equivalently for strings and characters. Just use them in pairs (if you open with double quote, close with double quote).It is up to you which you prefer.
6th Oct 2019, 4:21 AM
Tibor Santa
Tibor Santa - avatar