Pick a Python lab and re-do it in JavaScript. You should first try to write them using JavaScript's prompt
, console.log
and alert
in place of Python's input
and print
.
- Lab 01: Average Numbers
- Lab 02: Unit Converter
- Lab 03: Number to Phrase
- Lab 04: Blackjack Advice
- Lab 05: Pick6
- Lab 06: Make Change
- Lab 07: Credit Card Validation
Once you have that working, use input
and button
elements, with events. You can read the docs on DOM Manipulation and Events. You can view a demo DOM Interaction Demo - codepen.io.