Skip to content

abhafez/Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FCC Calculator

this project is one of freecodecamp front-end program advanced projects which tests javascript skills and ability to find solutions when the programmer faces obstacles. In this project I used vanilla javascript as a challenge and no use of any library.

eval() function

This function saved alot of time. It calculates a string and return the results.

e.g : var x = "5+5"

eval(x) // returns 10

Code Dependencies

1. Markup

index.html - the main structure of the calculator

2. Styling

style.css - main stylesheet for the project.

3. Script

script.js - main script for calculating user input.