String in Swift3

How to define string variable

Escape Characters

\\ => If you want to show back slash

Hello \World

\t => Shows the tab

Hello World

\n => show new line
\” => shows double quote
\’”=> shows single quote

Joining two strings

Get the length of String

Length of the string : 9

Leave a Reply

Your email address will not be published. Required fields are marked *