This repository contains my implementation of Assignment 4 for CSC317, which includes a JavaScript calculator and a personal portfolio website.
assignment-4/
├── README.md
├── SUBMISSION.md
├── calculator.html
├── calculator.js
├── hello.js
├── index.html
├── images/
│ ├── calculator-preview.jpg
│ └── profile.jpg
├── styles/
│ └── styles.css
└── scripts/
└── script.js
- Basic arithmetic operations (addition, subtraction, multiplication, division)
- iOS-style interface
- Keyboard support
- Clear and All Clear functionality
- Error handling for invalid operations
- Responsive design
- About Me section
- Projects showcase
- Clean and modern interface
- Clone the repository
- Open
index.htmlin a web browser to view the portfolio - Click on "View Calculator" to access the calculator application
- Alternatively, open
calculator.htmldirectly to use the calculator
To test the calculator:
- Open
calculator.htmlin a web browser - Try basic arithmetic operations using both mouse clicks and keyboard input
- Test error handling by attempting invalid operations
- Verify that the clear and all clear buttons work as expected
Hamid Sahraye