Recall & Review
beginner
What is Node.js?
Node.js is a program that lets you run JavaScript code outside a web browser, usually on your computer or server.
Click to reveal answer
beginner
Why do we use a version manager like nvm for Node.js?
A version manager helps you easily switch between different Node.js versions on your computer, so you can work on many projects without conflicts.
Click to reveal answer
beginner
How do you check the installed Node.js version in your terminal?
You type
node -v or node --version and press Enter. It shows the current Node.js version.Click to reveal answer
intermediate
What command installs a specific Node.js version using nvm?
Use
nvm install <version>, for example nvm install 18.16.0 to install Node.js version 18.16.0.Click to reveal answer
intermediate
How do you switch to a different Node.js version after installing it with nvm?
Use
nvm use <version>, for example nvm use 18.16.0 to start using that version.Click to reveal answer
Which command shows your current Node.js version?
✗ Incorrect
The command
node -v displays the installed Node.js version.What tool helps manage multiple Node.js versions on one computer?
✗ Incorrect
nvm (Node Version Manager) lets you install and switch between Node.js versions easily.
How do you install Node.js version 16.14.0 using nvm?
✗ Incorrect
The command
nvm install 16.14.0 downloads and installs that Node.js version.After installing a Node.js version with nvm, how do you start using it?
✗ Incorrect
Use
nvm use <version> to switch to the installed Node.js version.Which of these is NOT a benefit of using nvm?
✗ Incorrect
Running JavaScript in the browser is done by browsers themselves, not by nvm.
Explain how to install Node.js and manage its versions on your computer using nvm.
Think about the commands you type in the terminal to handle Node.js versions.
You got /4 concepts.
Why is it helpful to have multiple Node.js versions installed on one machine?
Consider how software projects can depend on specific tools.
You got /4 concepts.