Recall & Review
beginner
What is the purpose of the
src folder in a Vue project?The
src folder holds the main source code of the Vue app, including components, views, assets, and main entry files like main.js or main.ts. It's where you write your app's logic and UI.Click to reveal answer
beginner
What does the
components folder usually contain in a Vue project?The
components folder contains reusable Vue components. These are small building blocks like buttons, headers, or cards that you can use throughout your app.Click to reveal answer
beginner
Why is the
public folder important in a Vue project?The
public folder holds static files like index.html, images, or icons that are served directly without processing. It is the base HTML page that loads your Vue app.Click to reveal answer
intermediate
What role does
main.js or main.ts play in a Vue project?This file is the app's entry point. It creates the Vue app instance, connects plugins, and mounts the app to the HTML page. Think of it as the starting point of your app.
Click to reveal answer
intermediate
What is the purpose of the
views or pages folder in a Vue project?The
views or pages folder contains components that represent full pages or screens in your app. They often combine multiple smaller components and are linked to routes.Click to reveal answer
Which folder in a Vue project typically contains reusable UI parts like buttons or cards?
✗ Incorrect
The
components folder holds reusable UI parts used throughout the app.Where do you place static files like
favicon.ico or robots.txt in a Vue project?✗ Incorrect
Static files served as-is go into the
public folder.What is the main purpose of
main.js or main.ts in a Vue project?✗ Incorrect
main.js or main.ts creates the Vue app instance and mounts it to the page.Which folder usually contains components that represent full pages in a Vue app?
✗ Incorrect
views or pages hold components representing full pages or screens.Where do you typically put images used inside your Vue components?
✗ Incorrect
Images used inside components usually go in
src/assets to be processed by build tools.Describe the main folders in a Vue project and what each is used for.
Think about where you write code, where you keep static files, and how the app starts.
You got /5 concepts.
Explain the role of
main.js or main.ts in starting a Vue app.Consider what happens first when your app loads in the browser.
You got /4 concepts.