Posts by Pedro Felgueiras • 1 point
1 post
-
-1
votes2
answers42
viewsA: How to obtain the value of the variable outside the function?
This type of doubt is very common in beginners. To be able to access the variable DI out of these callback functions, you can do two things: Or you use Promises: const Promise = new…