Posts by Cleyson Leal • 1 point
1 post
-
0
votes2
answers42
viewsA: Why am I getting Undefined on the return of this function?
When you give the return finalPrice; it exits the function by not executing the agent.add(Valor deveria vir aqui: ${finalPrice});, tries to add the agent.add() before the return…