This repository contains a set of tasks to practice conditionals in JavaScript, specifically if..else and switch statements.
To get started, please follow the instructions below:
- Fork this repository by clicking on the "Fork" button on the top right corner of the page
- Clone the repository to your local machine by running git clone in your terminal. Replace with the actual URL of the repository.
- Navigate to the cloned repository using the cd command in your terminal. This should be the folder that contains the switchStatement.js and ifStatement.js files.
- Open the ifStatement.js file in your code editor and start working on the tasks related to if-else statements.
- Open the switchStatement.js file in your code editor and start working on the tasks related to switch statements.
- Follow the instructions provided in the task descriptions to complete each task.
- Make sure to work on both files and complete all the tasks in both files.
After completing the tasks, please follow the instructions below to submit your work:
- Run
git add .
in your terminal to track the changes - Run
git commit -m "<commit-message>"
to stage the changes - Run
git push
to push the changes to your forked repository - Create a pull request to submit your work for review
Please note that you must fork the repository before cloning it.
Here are some resources that you may find helpful:
- MDN Web Docs: Conditional Statements
- W3Schools: JavaScript Switch Statement
- FreeCodeCamp: JavaScript Switch Statements Explained with Examples
Enjoy the journey! 😃