What's wrong with this code?

Thank you guys. I think I’m going to leave this one and go on from here. I’m determined to succeed

This is difficult for me

Maybe reading about scopes first could help a bit: https://en.wikipedia.org/wiki/Scope_(computer_science).

Cool!

This was definitely helpful.

I also bookmarked it.

This maybe something you want to do…https://play.golang.org/p/PigVlVGoycT. In your example you had a typo after the 2. That was the first error. You cant have ; in Go just after the comparison…Second issue was you were trying to compare apples to bananas…x is a variable but its an integer type and not a boolean. Remember that Go is statically typed.

Interesting and cool.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.