Colin Smith3,259 Points
Code works in swift. Bummer error in web console. Connectivity Issue?
I have compiled my code for the challenge successfully in Swift. However the code does not run in the web based console. Also sometimes I'm not able to get the preview to show me whatever error might have come up. Is there some kind of connection issue. Is there a preferred browser for this content? I'm using safari now.
// Enter your code below let name = "Colin" let greeting = "Hi there, \(name)." let finalGreeting = greeting + " How are you?"
Michael HuletTreehouse Moderator 46,554 Points
Your code is actually totally valid, and should pass the challenge. Great job! That being said, it seems like you've found a weird issue with the challenge parser. Like I said, you have total valid Swift that should work, but the challenge checker gets thrown off by there being 2 spaces between
finalGreeting. The Swift compiler will happily compile that, but for some reason, the challenge fails it. I've reported it as a bug, but in the meantime, if you remove one of those spaces, your code passes the challenge on my machine