Question
Spend a while trying to make a simple calculator yourself. 1. Make your standard page with common header/footer and call the page calculator_try.html 2. You
Spend a while trying to make a simple calculator yourself.
1. Make your standard page with common header/footer and call the page calculator_try.html
2. You can easily figure out how to make buttons in html.
3. You should be able to figure out how to cause those buttons to launch alerts
4. You should then be able to sort out how to cause those to run scripts in your linked script file (i.e. calculator_try.js)
5. You should be able to add some css to you default css file to get the buttons to look uniquely yours.
6. Your files currently contain embedded code, specifically there is embedded JavaScript (JS) in the HTML file. (e.g. onclick=\"showNum(4) )
7. If you've spent an hour + on this and figure you won't be able to figure it out, make some notes as to where you're getting stuck. Save and
upload your work in the normal manner (github, school site, check validation, add to menus) and then proceed to the next step.
Part 2:Follow a Tutorial
- This is not necessary if you can get yours to work- you SHOULD be able to, but you're just starting out, so here's some help.
- Review this tutorial: How to build an HTML calculator app from scratch using JavaScript (freecodecamp.org) (Links to an external site.)
- Create another page called calculator_fcc with all the normal things as the rest of your pages. Put the html code into main.
- If you don't want to do this, and have your try working, simply put some text in the main (after the h2 page name) that says so.
- Go thru the tutorial, typing the code in MANUALLY, not by copying, and doing each step, confirming it works as described, and proceeding.
Part 3: Turn in your activity
- Make sure both pages are uploaded, and provide the link to your main page (which in turn should have links to all your pages).
- Post here what you decided to do, what kind of trouble you had with the attempt.
- Sign off with your statement of academic integrity followed by signature, time and date, including
- List who you consulted with and what other resources (outside fcc) you used.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started