JavaScript in HTML

  • You can include JavaScript in your HTML files via <script> tags
  • <script> tags can reference another file
  • Variables that you define outside functions become global
  • You can access global variables in the console

2 / 12