Which statement best describes the main characteristic of a multi-page app (MPA)?
Think about how the browser behaves when you click a link in a traditional website.
In a multi-page app, each page is a separate file. Navigating to a new page reloads the whole page, unlike single-page apps where content updates dynamically.
What happens to the JavaScript state when a user navigates from one page to another in a multi-page app?
Consider what happens to variables when a page reloads.
Since each page reloads fully in a multi-page app, all JavaScript variables and state reset unless explicitly saved externally.
You are building a website with many distinct pages and simple navigation. Which advantage of multi-page apps makes them a good choice?
Think about how search engines find and rank pages.
Multi-page apps have separate URLs and full HTML content per page, which helps search engines index each page well.
Which is a common performance drawback of multi-page apps compared to single-page apps?
Consider what happens every time you click a link in a multi-page app.
Because each page reloads fully, the browser must download and render the entire page again, which can slow navigation.
In a multi-page app, you want to keep user preferences (like theme or language) consistent across pages without server storage. Which method is best to achieve this?
Think about how data can persist beyond a single page load in the browser.
Cookies and local storage keep data in the browser even when pages reload, allowing preferences to persist across pages without server help.