Node.js & Express.js freeCodeCamp

Cards (988)

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