Golf-Code
-
In the game of golf, each hole has a
par
, meaning, the average number ofstrokes
a golfer is expected to make in order to sink the ball in the hole to complete the play. Depending on how far above or belowpar
yourstrokes
are, there is a different nickname. -
par
andstrokes
will always be numeric and positive. -
I have written a function, that will be passed
par
andstrokes
arguments and will return the correct string according to this table which lists thestrokes
in order of priority; top (highest) to bottom (lowest):
Built With
- HTML
- CSS
- JavaScipt
- Webpack
- ES6
Live Demo
Author
👤 Bhagyashree Patra
- GitHub: @Vagyasri
- Twitter: @Vagyasri
- LinkedIn: Bhagyashree Patra
Getting Started
Prerequisites:
- Web browser
- Code Editor (VS Code)
- Live Server Extension
Cloning the repo to your local system (If you already have git, installed in your system):
- Copy this link
- Open your terminal or command line
- Run "git clone Paste this link"
- Open the folder with your code editor
- Now You can edit the code and check the changes in the browser using Live Server
Webpack Setup:
- Initialize
npm
: Runnpm init -y
- Install
webpack
andwebpack-cli
locally: Runnpm install webpack webpack-cli --save-dev
Implement the changes and Get Live View in Localhost:
- Run:
npm run build
- Run:
npm start
Install Jest using NPM:
- Run:
npm install --save-dev jest
For Running Jest:
- Run:
npm run test or npm test
Check linter errors:
- Install npm
- For HTML: Run npx hint .
- For CSS: Run npx stylelint "**/*.{css,scss}"
- For JS: Run npx eslint .
🤝 Contributing
Contributions, issues, and feature requests are welcome!
Start by:
- Forking the project
- Cloning the project to your local machine
- cd into the Youtube-Replica project directory
- Run git checkout -b your-branch-name
- Make your contributions
- Push your branch up to your forked repository
- Open a Pull Request with a detailed description to the development branch of the original project for a review
Feel free to check the issues page, contribute to the Project by creating an issue.
Show your support
Give a ⭐️ if you like this project!