Hướng dẫn thử thách
1 / 108
Step 1
In this workshop, you'll build a decimal and binary converter and practice both number systems. You'll also use recursion to perform the conversions.
All of the HTML and CSS for this project has been provided for you.
When you're ready to get started, use the `.getElementById()` method to get the `input` element with the id `"number-input"`, and store it in a `const` variable called `numberInput`. Use the same method to get the `button` element with the id `"convert-btn"` and store it in a `const` variable called `convertBtn`, and the `output` element with the id `"result"` and store it in a `const` variable called `result`.
**NOTE**: This project will only convert positive numbers into binary.
Vượt qua bài kiểm tra hiện tại để mở khóa bài tiếp theo.
main.html
UTF-8 • Tab Size: 2Kiểm tra bài:⌘↵