JavaScript Usage
2025-01-08
<script>
// Logic
</script>
<script src="path/to/global.js"></script>
<script src="path/to/section.js"></script>
Memory Allocation Phase
: Functs and vars get stored into mem as key-val pairs
Code Execution Phase
: Thread of execution, whereby vals of functs and vars are updated in order
When a function is called, a new Execution Context is created inside the calling execution context.
<script>
tag<script src="script.js" async>
<script src="script.js" defer>