HTML and CSS can't do everything. Learn how to write JavaScript code to work with features like web forms, clocks, and interactive maps on your websites.
Overview
Syllabus
Introduction
- Web designers need JavaScript
- What you should know
- Using the exercise files
- Challenges
- Compatibility notes
- What is JavaScript?
- Live examples
- Where you don't use JavaScript
- JavaScript's power can be dangerous
- Your friend the text editor
- Browsers and tools
- Tools in action
- Getting help
- Jargon
- Jargon: The DOM
- Vanilla JavaScript versus frameworks
- Working with user info
- Text fields and select boxes
- Radio buttons and checkboxes
- Changing submission with events
- Starting to validate input
- Disabling and enabling fields
- The basics of sanitizing user input
- Get and set with innerHTML
- Challenge: Add and use more fields
- Solution: Add and use more fields
- Use JavaScript to tell time
- Get pieces of time
- Use timers to update the page
- Polish the clock
- Challenge: Add the date
- Solution: Add the date
- Filling in gaps with Moment.js
- What is an API?
- Create a map
- Change the center point
- Change the type and zoom level
- Add a marker
- Add a popup to the marker
- Challenge: Modify the map
- Solution: Modify the map
- Introducing Ziptastic
- Fetching data from a third party API
- Better UX for the checkout page
- Next step: More about JavaScript
Taught by
Joe Chellman