-
Clone the Repository:
git clone https://github.com/vinaytheprogrammer/Teaching.git cd Teaching
-
Create a Directory for the Assignment:
- For assignment 1, create a directory named
ans1
.
- For assignment 1, create a directory named
-
Create a File for Your Answers:
- Inside the
ans1
directory, create a file with your name (e.g.,vinay_gupta.js
).
- Inside the
-
Submit Your Answers:
- Write and save your answers in the file created in the previous step.
-
Clone the Repository:
git clone https://github.com/vinaytheprogrammer/Teaching.git cd Teaching
-
Create Directory for Assignment 1:
mkdir ans1 cd ans1
-
Create Your Answer File:
touch vinay_gupta.js
-
Write Your Answers:
- Open
vinay_gupta.js
in your preferred code editor. - Write your answers and save the file.
- Open
- Fork the repository.
- Create your feature branch (
git checkout -b feature/your-feature
). - Commit your changes (
git commit -m 'Add some feature'
). - Push to the branch (
git push origin feature/your-feature
). - Open a pull request.
// Question 1: Write a function to add two numbers.
function add(a, b) {
return a + b;
}
console.log(add(2, 3)); // Output: 5
Follow these steps to ensure your work is properly organized and submitted. If you have any questions or need further assistance, feel free to contact me.