In the first example you define the src
which makes it IGNORE the contents of the <script></script>
In the 2nd example you have 2 separate <script></script>
tags, the 2nd of which is housing your code to execute.
In the first example you define the src
which makes it IGNORE the contents of the <script></script>
In the 2nd example you have 2 separate <script></script>
tags, the 2nd of which is housing your code to execute.