JavaScript

Below are 13 questions that must be completed. The questions are all multiple choice

Read each question carefully and select the correct answers for each one.

1. What is a callback function in JavaScript?

2. Which of the following is a JavaScript package manager?

3. What is a promise in JavaScript?

4. What is Express.js?

5. What is the mysql2 library used for in Node.js?

6. Which keyword is used to define an asynchronous function in JavaScript?

7. What is the purpose of the 'package.json' file in an npm project?

8. What is the purpose of the .then() method in JavaScript Promises?

9. What is the purpose of the .catch() method in JavaScript Promises?

10. What does the 'spread operator' do in JavaScript?

11. Which command initializes a new npm project?

12. What does 'npm start' do?

13. What is the purpose of the this keyword in JavaScript?