Commit cdbe1cc
committed
feat: Print string with both single and double quotes using escape characters [escape-nested-quotes]
🔑 Key: escape-nested-quotes
🧠 Logic:
- Uses `\"` to escape the double quotes around the inner dialogue.
- The single quote in `It's` doesn't need to be escaped inside double-quoted strings.
- Demonstrates the proper use of escape characters when mixing quotes.
📘 Example Use:
- Useful for printing code, dialogues, or quotes that contain both types of quotes.
Signed-off-by: Somesh diwan <[email protected]>1 parent a5d0838 commit cdbe1cc
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
0 commit comments