##### ###### ##### ### # # ### # # ###### ## ## ## ## ## ## ## # # # # # ## ##### #### ##### # # # # # # # #### ## # ## ## ## ## # # # # # ## ## # ###### ## ### # ### # ######
##### ###### ##### ### # # ### # # ###### ## ## ## ## ## ## ## # # # # # ## ##### #### ##### # # # # # # # #### ## # ## ## ## ## # # # # # ## ## # ###### ## ### # ### # ######
##### ###### ##### ### # # ### # # ###### ## ## ## ## ## ## ## # # # # # ## ##### #### ##### # # # # # # # #### ## # ## ## ## ## # # # # # ## ## # ###### ## ### # ### # ######
Set up your environment and write your first JavaScript
What you'll learn
Execution environments
Two environments compared
Your first playground
Printing output
Test your understanding
Adding JS to HTML
Separating code from HTML
When scripts execute
Test your understanding
Your code editor
Auto-refresh your page
JavaScript outside browsers
Test your understanding
Code structure basics
ASI edge cases
Exact spelling matters
Documenting your code
Longer explanations
Test your understanding
Catching silent errors
Error examples
Test your understanding
Readable formatting
Variable and function names
Test your understanding
Understanding what went wrong
Undefined variables
Invalid code structure
Wrong type operations
Test your understanding
Finding problems
Logging context
Beyond console.log
Test your understanding
Complete starter template
Starting script.js
Your first task
Expanding your skills
Documenting code
Test your understanding
Building something real
Extending the project
Working solution
What you practiced
Test your understanding
What to avoid
Good habits to build
Preparing for variables
Summary of key concepts