All buttons
Lesson 5 of 14 in Coddy's DOM Project - Calculator course.
Challenge
Easy- Inside div 'buttons', create 18 buttons with the class name 'btn'.
- For the last button, add the class name ‘equal’ also!
For each button, add their text in
Button Text Description C Clear Display ← Delete Last Character / Division * Multiplication 7 Number 7 8 Number 8 9 Number 9 - Subtraction 4 Number 4 5 Number 5 6 Number 6 + Addition 1 Number 1 2 Number 2 3 Number 3 0 Number 0 . Decimal Point = Calculate Result
Try it yourself
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<!-- Write HTML code here -->
<script src="script.js"></script>
</body>
</html>All lessons in DOM Project - Calculator
1Introduction
What will you build?