+ 2
" " vs ' '
What do you use?
8 Respostas
+ 2
If it is irrilevant, i generally tend to use ""
+ 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
+ 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 "
+ 1
" dort strings
' for chars
+ 1
for java language,
'' is used for char and "" for string
+ 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.
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
0
I always use “ because of layout of the Turkish QWERTY keyboard