Bird
0
0

Which folder name is commonly used to store static files in an Express app?

easy📝 Conceptual Q2 of 15
Node.js - HTTP Module
Which folder name is commonly used to store static files in an Express app?
Aroutes
Bviews
Cpublic
Dcontrollers
Step-by-Step Solution
Solution:
  1. Step 1: Identify common folder conventions

    In Express apps, the public folder is the standard place to keep static files like images, CSS, and JavaScript.
  2. Step 2: Differentiate from other folders

    Folders like views hold templates, routes hold route logic, and controllers manage business logic, not static files.
  3. Final Answer:

    public -> Option C
  4. Quick Check:

    Static files folder = public [OK]
Quick Trick: Static files usually go in the 'public' folder [OK]
Common Mistakes:
  • Using views folder for static files
  • Confusing routes with static assets
  • Placing static files in controllers

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Node.js Quizzes