Complete the code to declare a prop named name in a Svelte component.
export [1] name;var or const instead of let.export keyword.In Svelte, you declare props using export let. This makes name a property that can be passed from a parent component.
Complete the code to declare a prop named age with a default value of 30.
export let age = [1];Assigning 30 as the default value means if no value is passed, age will be 30.
Fix the error in the code to properly declare a prop named title.
export let [1] = 'Hello';
Variable names must start with a letter or underscore and contain no special characters. title is valid.
Fill both blanks to declare two props: count with default 0 and enabled with default true.
export let [1] = 0; export let [2] = true;
enable instead of enabled.counter instead of count.The props are named count and enabled. The defaults are 0 and true respectively.
Fill all three blanks to declare props firstName, lastName, and age with default values "John", "Doe", and 25 respectively.
export let [1] = "John"; export let [2] = "Doe"; export let [3] = 25;
The props must be declared with the exact names and default values as specified.