concept JavaScript code in category svelte

appears as: JavaScript code, JavaScript code
Svelte and Sapper in Action

This is an excerpt from Manning's book Svelte and Sapper in Action.

  • JS Output --The JS Output tab shows the JavaScript code generated for the app by the Svelte compiler.
  • To stop at a particular line of code, use the browser debugger to set a breakpoint there. This is done by clicking its line number which toggles a breakpoint. Alternatively, you can add the statement debugger; before a line in the JavaScript code.

    <script>
      let online = true;
      //...use online in JavaScript code and {#if} blocks ...
    </script>
    <svelte:window bind:online />        #1