In CPQ Calculator, why is the asynchronous function returning a promise pending instead of a value?
The code is behaving appropriately by returning a promise pending instead of a value, and the console.log at line 14 should fire first as per the lifecycle of promise in JS. If you have to stop the code at line number 3 (before it goes to line 14) then you should make a few changes. Your code should be similar to this…
Answered Feb 8, 2023 · 1.2K Views Read answer →