acmpesuecc / calcyourgpa

It's a simple repository to enter your subjects and calculate your GPA.
MIT License
4 stars 16 forks source link

Cleaned and rearranged the code #21

Closed KrutikaBhatt closed 2 years ago

KrutikaBhatt commented 2 years ago

Brief Description of Fix I went through the code base and I rearranged, commented, cleaned the codes. Being a beginner in javascript, I found the codes easy to understand and process; thus I haven't made any significant changes to simplify the functions.

Detailed Description including steps taken and any changes made

  1. Enclosed the codes into HTML block since it was showing the error in the console
  2. Rearranged the javascript code so that all the major functions are easily found and code flow is understandable
  3. Added comments before the code blocks

Linked Issue(s)
Closes #_ 17

If there is something I should add more and modify; Please do let me know