How to put quotes around a string that has quotes?

137 views Asked by At

Making a game in spritekit and I have an array of famous historical quotations. I'm having trouble adding the quotes because the syntax requires me to use quotes. For example, I want to do something like ""apple"", ""orange"", but it won't let me use double quotations.

1

There are 1 answers

0
Bannings On BEST ANSWER

Try this:

let fruit = "\"apple\""