https://github.com/leta91/golf-game
Golf Game using JavaScript
https://github.com/leta91/golf-game
coding freecodecamp freecodecamp-project how-to if-else javascript javascript-game
Last synced: about 1 year ago
JSON representation
Golf Game using JavaScript
- Host: GitHub
- URL: https://github.com/leta91/golf-game
- Owner: leta91
- License: mit
- Created: 2022-08-14T15:11:09.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-09-21T08:12:28.000Z (over 3 years ago)
- Last Synced: 2025-01-29T18:23:18.647Z (over 1 year ago)
- Topics: coding, freecodecamp, freecodecamp-project, how-to, if-else, javascript, javascript-game
- Language: JavaScript
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Golf Game with JavaScript 🏌️♀️🏌️⛳
## Short Explanation
In line 22 golfScore(5, 4); sets the values of the two arguments of the function golfScore to:
- par = 5
- strokes = 4
All statements are found to be false. The only true statement is the one located on line 8-9. It follows that the result shown inside the terminal is Birdie, when strokes is equal to par - 1