Double quotes | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Double quotes

How do i create a string with 2 quotes

6th Jan 2018, 9:06 PM
Mathias0709
Mathias0709 - avatar
6 Answers
+ 10
depending on the language you can either escape the double quotes or put them inside single quotes
6th Jan 2018, 9:10 PM
Kamil
Kamil - avatar
+ 3
Which language ?
6th Jan 2018, 9:07 PM
sneeze
sneeze - avatar
+ 3
" text "
6th Jan 2018, 11:21 PM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 2
It's considered a good practice to tag the language you're asking about. As for the double quotes, different languages may use different approaches, but it's most likely either an escape character like "here goes \" symbol" or doubled quote like "here goes "" symbol". Try googling something like 'escaping quotes in language_x'.
7th Jan 2018, 12:36 AM
deFault
+ 1
In most cases, \” keeps the “ in the string.
7th Jan 2018, 2:50 AM
Jacob Pembleton
Jacob Pembleton - avatar
0
In html but i have figured it out now thank you guys
24th Mar 2018, 7:36 AM
Mathias0709
Mathias0709 - avatar