added workspace file to idea folder
put variables into reusable code below the function
Moved "To calculate" section from bottom to above function

Commented, uncommented, and commented again in if, else if statement
for variables and console.log