We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
My code:
function golfScore(par, strokes) { // 请只修改这条注释以下的代码 if (strokes === 1) { return "Hole-in-one"; } if (strokes <= par - 2) { return "Eagle"; } else if (strokes == par - 1) { return "Birdie"; } else if (strokes == par) { return "Par"; } else if ( strokes == par + 1) { return "Bogey"; } else if (strokes == par + 2) { return "Double Bogey"; } else if (strokes >= par + 3){ return "Go Home"; } // 请只修改这条注释以上的代码 } // 你可以修改这一行来测试你的代码 golfScore(4, 7);
The text was updated successfully, but these errors were encountered:
No branches or pull requests
My code:
The text was updated successfully, but these errors were encountered: