Javascript variables, data types, and innerHTML
First Paragraph
Second Paragraph
This is my simple div
Click the Homework button to view your homework!
Coding Challenge Jun 22
Make a simple adding machine.
- Read about the
Number()
function here: Number() - W3 Schools (it's about a 1/3 way down the page - scroll down!)
- Using Javascript, create the calculator below
- Use variables, function(s), innerHTML, spans and/or divs, an alert box, and the Number Function your read about above
- Don't worry about "error handling" right now. We will learn more about this later!
- The answer should be the number 4, not the String "22".
- Style your calculator however you wish, but it must be styled!
- Important: Send me a slack message with a link to your calculator when you are done.
Simple Adding Machine
2
+
2
=
Two plus two is CHICKEN!
-Brian Regan
via GIPHY