Question 12
Consider the following HTML, which includes Vue 2 and Vue Router 3 CDN links.
<div id="app"> <player-card> <p>Rahul is a versatile player, skilled in defense and attack.</p> <template v-slot:extra> <p>Position: Captain</p> <p>Years on the team: 5</p> </template> </player-card></div>
<script> Vue.component('player-card', { props: { playerName: { type: String, default: 'Unknown Player' } }, template: ` <div class="card"> <h2>{{ playerName }}</h2> <slot> <p>This player is an important part of the team.</p> </slot> <slot name="extra"></slot> </div> ` });
new Vue({ el: '#app' });</script>What will be the final-rendered output in the browser?