[ad_1]
Just about every angle-bracket language I know follows the following conventions:
The condition of an
ifstatement normally goes in parenthesisYou shouldn’t have a curly brace at the end of
turnCard('hit5'};You shouldn’t have a
;at the end of your if-statements(or yourforstatement)Some languages allow you to use single-quotes like that for strings(javascript will), but some languages don’t allow that. Almost all of them allow double-quotes. Without knowing the language, I’d suggest using double quotes just to be safe
if (i==0) { turnCard("hit5"); }
2
[ad_2]
solved For/if/else loop has unexpected identifier [closed]