In Progress

I need to access a variable outside a java script node.js fetch function

//Here's a simple example of my problem, I've been trying to solve it all morning but I just can't manage for the life of me, it has something to do with promises and local scope, like the code will keep running even if the function didn't complete it's task..

var testMe = "empty"

[login to view URL](testMe) // outputs "empty"

fetch(exampleInfo)

.then(function(response) {

return [login to view URL]()

})

.then(function(myJson) {

[login to view URL](myJson) // outputs "full"

testMe = myJson

[login to view URL](testMe) // outputs "full"

});

[login to view URL](testMe) // outputs "empty"

Skills: node.js, Javascript, Software Architecture, Express JS

See more: access outlook java script, java script need click, site need java script need flash, i have an existing php/mysql script that i need customized with additional functions, i have an existing phpmysql script that i need customized with additional functions, i need a full time java coder, i need a java programmer, i need a java writter in orlando florida, i need a php script for ecurency business, i need a php/html script mp3, i need a phphtml script mp3, i need a sash designer script like pride pageant, i need a screenplay writer to help me with writing a script, i need a script writer, i need someone to install paidtoclick script in my website, i need access to a scientific calculator, freelance java and node js developers in india delhi ncr, i need job in it java developer kuwait, what i need to develop with java programming, I need help with a python script

About the Employer:
( 1 review ) Birkirkara, Malta

Project ID: #20388266

Awarded to:

CleanMaster

Hello , sir. How are you? I just saw your project description carefully. I am very interested in your project. I have already solved it. I have rich experience in Web development. I am a full time developer and can wo More

€10 EUR in 7 days
(5 Reviews)
4.6
sushantpaudel

I think you are not hiring. But, the problem here is that you are using fetch which is an asynchronous function. So, you have to wait async-await or callbacks. Text me for more info.

€8 EUR in 1 day
(0 Reviews)
0.0

3 freelancers are bidding on average €9 for this job

ashokona

is it done or yet need to be solved, I'm a javascript expert and I can do it for you if it's still out there.

€10 EUR in 7 days
(3 Reviews)
2.7