Question · Vue.js course · Module 10: Vue Router

Browser History Types

What is the role of createWebHistory() in Vue Router configuration?

Answer options

  • Creates navigation with URL hashes (e.g., /#/about)
  • Creates clean HTML5 history (e.g., /about)
  • Creates in-memory history without a URL
  • Logs navigation history to the console

You can check the correct answer by solving this task in the CodeWorlds game.