[Solved] For/if/else loop has unexpected identifier [closed]


Just about every angle-bracket language I know follows the following conventions:

  • The condition of an if statement normally goes in parenthesis

  • You 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 your for statement)

  • 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

solved For/if/else loop has unexpected identifier [closed]