Subscriber only lesson.
Sign up to this course to view this lesson.
When to use
Here are the four main ways to output to the screen:
Hints & tips
- Depending on what you're outputting, you'll use a different method
- .innerHTML changes existing elements
- document.write(); writes to a web page
- window.alert(); creates a pop up message
- console.log(); outputs to the console
Lesson notes are only available for subscribers.