Default values

We can easily specify default values for props:

  1. <script>
  2. export let answer = 'a mystery';
  3. </script>

If we now add a second component without an answer prop, it will fall back to the default:

  1. <Nested answer={42}/>
  2. <Nested/>