Which escape sequence would i use to include a apostrophe within a single quoted string?
Answers
Answered by
0
To include a apostrophe within a singe quoted string use
\'
Answered by
1
\' is the escape sequence that the user would use to include an "apostrophe" within a "single quoted string".
The user can have the provision to add an apostrophe or a single quote within the single-quoted string when the user needs to escape it, i.e., the user can add a backslash “\”.
For example, ' this is an example '\s text for the user'
Similar questions