> ## Documentation Index
> Fetch the complete documentation index at: https://blog.sumathi.dev/llms.txt
> Use this file to discover all available pages before exploring further.

#  Script tags

* Why to use muliple script tags
  * code can be split in to multiple files
  * if files are not changed it will not load already loaded js
    * This is called ***browser Caching***

* Two ways of running js
  * giving a file
    * ```html theme={null}
        <script src="script.js"></script>
      ```

  * writing code in script tag
    * ```html theme={null}
        <script>
            // I can write js code here
            console.log("Code from inside the tag")
        </script>
      ```

  * Both cannot be done at same time
    * ```html theme={null}
        <script src="script.js">
            console.log("Trying to executr both") // This is ignored
        </script>
      ```
