Hi, My name is Jim.

Jim says: "How are you today?"

Jim says: \"How are you today?\"

What is happening here is that \, the backslash allows us to correct "illegal" strings. What I mean by "illegal" strings is the example above where there is the added backslash escape to catch the illegal strings. As having a string between two double quotes and not within either one of them would have broken the code. But because there are the backslash, this prevents the code from breaking. Essentially, what should have been illegal have now beome "legal". Cool right?

Go Back