Error, chapter 5

having a issue with new var “difference”

“let message = “The value of the slider is: (currentValue)” +
“\nThe target value is: (targetValue)” +
"\nThe difference is: (difference)”

Excerpt From: By Fahim Farook. “iOS Apprentice.” Apple Books. 58%20PM18%20PM

In the actual code, all the quote marks are the right kind, straight up and down, except for the last one, which is a slanty one. This happens more often these days when pasting code, as the fancy slanty ones show up a lot in formatted pages.

Just remove that at the end of difference), and replace it with a ".

1 Like

This topic was automatically closed after 166 days. New replies are no longer allowed.