Sunday 20 October 2019

NodeJS nested function. How to get value?

Hello together,i am working on my first nodejs project. Currently i struggle on one special syntax from nodejs:I have developing expercience, but never seen such before :DThis special "then" syntax and scoping. For example i have this code:​keyVaultClient.getSecret(vaultUri, "key", "").then(function(response){console.log(response);})​How do i access the variable response from my code outside the function?I have seen a lot of code with such special nested syntax. So how i can handle the scoping?Where i can find information about these syntax and scoping.?​Best greetings

Submitted October 21, 2019 at 07:39AM by superfliege90

No comments:

Post a Comment