What is the best recommendation or practice for the use of single quotes or double quotes in javascript? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is the best recommendation or practice for the use of single quotes or double quotes in javascript?

alert("Hello"); alert('Hello');

14th Jan 2019, 2:01 AM
Andrioris
Andrioris - avatar
2 Answers
+ 2
Hi Angel Andrioris, I personally use double quotes. Have a look at this snippet, should cover the basics.👍😊 https://code.sololearn.com/Wub0dLnT9c6X/?ref=app
14th Jan 2019, 3:19 AM
🌴Vincent Berger🌴
🌴Vincent Berger🌴 - avatar
+ 1
thanks
14th Jan 2019, 11:19 AM
Andrioris
Andrioris - avatar