The function sumOfSquares accepts an array of numbers and returns the sum of squared elements of an array as a promise. You need to handle the promises using the async/await syntax inside the try/catch block. If the promise is fulfilled, the sum will be logged into the console; otherwise, the error is logged into the console.
You do not need to call the calculateSum function. It's handled internally and called two times with different input arrays.