Add function to update content of screen
This commit is contained in:
parent
a378ac3cf5
commit
ea4c135b29
3 changed files with 20 additions and 2 deletions
|
|
@ -10,7 +10,7 @@
|
|||
<header><h1>Calculator</h1></header>
|
||||
<main>
|
||||
<div class="calculator">
|
||||
<div class="screen"></div>
|
||||
<div class="screen">0</div>
|
||||
<button class="num">1</button>
|
||||
<button class="num">2</button>
|
||||
<button class="num">3</button>
|
||||
|
|
@ -37,6 +37,6 @@
|
|||
|
||||
|
||||
|
||||
<script scr="script.js"></script>
|
||||
<script src="script.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Reference in a new issue