What are string literals? How can they be created?
Answer:
String literals represent a sequence of characters. They can be created by enclosing a sequence of characters in double or single quotes.
Examples:
- “abc”
- ‘Hello, good morning’
Learn in your speed, with individual attention - Teachoo Maths 1-on-1 Class