An order calculation function calls an asynchronous price lookup utility, but the final multiplication produces NaN instead of the total cost.
Topics:Async JavaScript
solution.js
JavaScript (Isolated Web Worker)1
2
3
4
5
6
7
8
9
Click "Run Tests" to execute your code against 3 deterministic test cases.
Execution runs safely in an isolated client-side Web Worker sandbox.