codejump

Nuxt Basics

Preview — 3 of 10 questions

What is Nuxt.js and what problem does it solve compared to a plain Vue app?

ANuxt is a meta-framework on top of Vue that adds SSR, file-based routing, auto-imports, and a full-stack capability out of the box
BNuxt is a UI component library built on top of Vue
CNuxt is Vue's official state management solution
DNuxt is a testing framework for Vue applications

How does Nuxt 3 handle routing with the pages/ directory?

AYou must manually configure routes in a router.config.ts file
BFiles in pages/ automatically become routes — the filename and directory structure define the URL path
CRouting in Nuxt requires registering each page in nuxt.config.ts
DThe pages/ directory is for layouts only — routes are configured in routes/

What does Nuxt 3's auto-import feature do?

AIt automatically installs npm packages when they are used in code
BIt replaces Webpack's module resolution with a faster custom resolver
CIt auto-generates TypeScript types for all imports
DIt automatically makes Vue APIs, composables, and components available without manual import statements

Sign up free to play

Answer all 10 questions (7 more), see explanations for every answer, and track your score.