Save
freeCodeCamp
Node.js & Express.js freeCodeCamp
Save
Share
Learn
Content
Leaderboard
Share
Learn
Created by
Michael Angelo Cantara
Visit profile
Cards (988)
What is Node.js?
Environment to run
JavaScript
outside the browser
View source
When was Node.js created?
In
2009
View source
What engine is Node.js built on?
Chrome's V8
JavaScript
engine
View source
Who created Node.js?
Ryan Dahl
View source
What is a major benefit of Node.js?
Large
community
support
View source
What language is used for both frontend and backend in Node.js?
JavaScript
View source
What are the course requirements?
Basic
HTML
,
CSS
, and
JavaScript
knowledge
View source
What is a major difference between Node.js and browser JavaScript?
No access to
browser APIs
in Node.js
View source
What type of applications do Node.js apps consist of?
Pure logic without
graphical
interface
View source
What is not available in Node.js?
Document object model (DOM)
View source
What can Node.js access that browser apps cannot?
File system
and
operating system
info
View source
How does Node.js handle versioning compared to browser apps?
Node.js depends on
its own
version
View source
What library does Node.js use for modules?
CommonJS
library
View source
How do you install Node.js?
Navigate to nodejs.org and pick
LTS
version
View source
How can you check if Node.js is installed correctly?
Type 'node
version'
in terminal
View source
What should you do if you encounter installation errors?
Use a
search engine
for troubleshooting
View source
What does LTS stand for in Node.js versions?
Long
Term
Support
View source
What is recommended for production apps?
Use
LTS
version of
Node.js
View source
What should you do if your version number is greater than 14?
Install the
current LTS version
View source
What is the first step to create a Node.js project?
Create a new
folder
for the project
View source
What should you name your Node.js file?
It can be named anything, e.g.,
app.js
View source
What is the advantage of using the integrated terminal in VS Code?
It points directly to your
project folder
View source
What is the shortcut to open the integrated terminal in VS Code?
Control
and
tilde
View source
What command is used to run a Node.js application?
node
app.js
View source
What is the purpose of using quotation marks and template strings in Node.js?
To showcase
string formatting
options
View source
What feature does VS Code provide for terminal access?
Integrated terminal pointing to the
folder
View source
How can you navigate to the terminal command in VS Code?
Go to
view
and find terminal command
View source
What is the command to run a specific file in Node.js?
node
filename.js
View source
What are global variables in Node.js?
Variables accessible anywhere in the
application
View source
What is the purpose of the __dirname variable in Node.js?
It
gives
the
path
to
the
current
directory
View source
What does the require function do in Node.js?
It is used to import
modules
View source
Why is the process variable useful in Node.js?
It provides info about the
execution environment
View source
What command is used to log data to the console in Node.js?
console.log
()
View source
What is the purpose of setInterval in Node.js?
To execute a
function
repeatedly at intervals
View source
How can you stop a running interval in Node.js?
By using
Control
and C
View source
What is the significance of using modules in Node.js?
To
organize
code into
manageable
files
View source
What is the difference between ES6 modules and CommonJS in Node.js?
CommonJS uses
require
, ES6 uses
import
View source
What does every file in Node.js represent?
Every file is a
module
View source
What is encapsulated code in the context of modules?
Code that shares only
necessary
parts
View source
How do you create a new module in Node.js?
Create
a
new
file
for
the
module
View source
See all 988 cards