Vagyasri / Golf-Code

In this Project, I am defining a function that will return the correct NICKNAME for a golfer based on their PAR and STROKES. I have used JavaScript for this Project.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Golf-Code

  • In the game of golf, each hole has a par, meaning, the average number of strokes 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 below par your strokes are, there is a different nickname.

  • par and strokes will always be numeric and positive.

  • I have written a function, that will be passed par and strokes arguments and will return the correct string according to this table which lists the strokes in order of priority; top (highest) to bottom (lowest):

Golf

Built With

  • HTML
  • CSS
  • JavaScipt
  • Webpack
  • ES6

Live Demo

Live View!!

Author

👤 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: Run npm init -y
  • Install webpack and webpack-cli locally: Run npm 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!

About

In this Project, I am defining a function that will return the correct NICKNAME for a golfer based on their PAR and STROKES. I have used JavaScript for this Project.

License:MIT License


Languages

Language:JavaScript 77.0%Language:HTML 18.5%Language:CSS 4.4%