0

Complete the code to create the string containing double quotes?.. I cant understand this question..

11th Jan 2017, 3:56 PM
seetha
seetha - avatar
2 ответов
+ 2
Strings can start and finish either with single quotes, and double quotes. Lets assume that you need to create a string containing Seetha's question. you can do it in two ways: "Seetha's question" note that your string starts and finishes with double quotes - so you can easily put a single quote inside, no need for an escape character "\". However, you wanted to have a double quote within your string, you would need a "\" like so "Seetha\"s question". hope this helps ;)
11th Jan 2017, 4:25 PM
Anvar Turobov
Anvar Turobov - avatar
+ 1
yeah... verymuch useful. thank you
11th Jan 2017, 5:17 PM
seetha
seetha - avatar