Using Quotes

Strings can use single or double quoted strings interchangebly for the most part. The key difference between them is that strings inside single quotes are taken literally. Double quotes can interpret special characters

Using a variable inside single quotes: Assignment 3 is due on $duedate.

Using a variable inside double quotes: Assignment 3 is due on Feb 09, 2025.




Return to index