This is an example javascript application calculating something - it is your task to find out what it is. 🤓
The variables and functions are named a little bit vague on purpose, so that it is not too obvious what the application is doing.
Plase answer the folliwng 10 questions with your own words.
Please answer the following questions even if you don't know the anwers to all of them.
-
How is the
index.html
andmain.js
connected?- Bonus question: What does
./
mean?
- Bonus question: What does
-
What is the purpose of the function
DOMReady
and why is it used?- Bonus question: Is there an alternative instead of doing it that way?
-
What is the function
handleCalculation
doing? -
What is the function
checkLimits
doing?- Bonus question: Is there something obsolete in there?
-
What is the function
check
doing?- Bonus question: Is there a better way to do the same?
-
What is the function
getCalculationLimit
doing?- Bonus question: Is there something obsolete in there?
-
What does the function
calculate
calculate and how is it doing it? -
What is the function
printResult
doing?- Bonus question: Is there an alternative for
Intl.NumberFormat
?
- Bonus question: Is there an alternative for
-
Did you manage to run the application on your computer? Which steps were necessary?
-
What is the application doing?
You can visit us at concircle.com for further information.