Homework Assignment #14: Callbacks and Promises
Objectives
Create two different scripts. One will contain the callback-centered code,
and the other the promises-centered code. The two scripts should contain the same functionality,
and solve the same problems.
- Calculate the square of num and log it to the console
- Wait "num" milliseconds
- Determine the prime-number that is closest to num
without being greater than or equal to num, and then log it to the console
- Determine the prime-number that is closest to numwithout being greater
than or equal to num, and then log it to the console
- Count the total elapsed time from when the original function was called until the last step was completed,
and log that to the console as well.