+ 2

" " vs ' '

What do you use?

11th Aug 2018, 7:35 PM
Vlad Lukin
Vlad Lukin - avatar
9 Respuestas
+ 2
If it is irrilevant, i generally tend to use ""
11th Aug 2018, 7:40 PM
Maz
Maz - avatar
+ 2
Depending on the position and language used, but often "" with the text being either ' ' with the variant of the type char https://www.sololearn.com/discuss/1450529/?ref=app
11th Aug 2018, 10:15 PM
Fadi joria
Fadi joria - avatar
+ 2
its depends... like you want to use word : Don't so u use " Example "Hello! You Don't Do!" So the ' wont disturb the "
12th Aug 2018, 4:40 AM
Jingga Sona
Jingga Sona - avatar
+ 1
" dort strings ' for chars
11th Aug 2018, 8:51 PM
Jeremy
Jeremy - avatar
+ 1
for java language, '' is used for char and "" for string
12th Aug 2018, 1:20 PM
Dababi Mohamed Amine
Dababi Mohamed Amine - avatar
+ 1
Your question should be more specific. Each language is different. Many languages use " to denote string representation and ' for char. And they're interchangeable in JavaScript.
12th Aug 2018, 10:22 PM
Mike
Mike - avatar
0
sometimes, if you have a string with many ' you can use "" to indicate it's a string so you don't have to replace it or constantly put a \ before it
11th Aug 2018, 7:51 PM
Roel
Roel - avatar
0
I always use “ because of layout of the Turkish QWERTY keyboard
11th Aug 2018, 10:41 PM
GoodOldTimes
GoodOldTimes - avatar