You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To make double-quotation marks appear in a string, enclose the entire
string in single quotation marks. For example:
'As they say, "live and learn."'
The output of this command is:
As they say, "live and learn."
You can also enclose a single-quoted string in a double-quoted string.
For example:
"As they say, 'live and learn.'"
The output of this command is:
As they say, 'live and learn.'
Or, double the quotation marks around a double-quoted phrase. For
example:
"As they say, ""live and learn."""
The output of this command is:
As they say, "live and learn."
To include a single quotation mark in a single-quoted string, use a
second consecutive single quote. For example:
'don''t'
The output of this command is:
don't``
The text was updated successfully, but these errors were encountered:
Is this actually breaking? This is meant to illustrate different methods of including quotation marks in a string; doubling up the quotation marks to insert them into a string is a valid way of doing so. 😄
PSKoans/PSKoans/Koans/Foundations/AboutStrings.Koans.ps1
Line 35 in 3563a02
From the about_quotationRules
The text was updated successfully, but these errors were encountered: