Explore Library
Code QuizIntermediate

Resetting Navigation State

Spot the malformed reset action that throws an error.

Codejavascript
navigation.reset({
  index: 0,
  routes: { name: 'Home' },
});

What is the bug in this code?