I am newbie to node and I am having hard time in getting a very basic thing.
redis_client.get('foo', (err, reply) => {
if (err) throw err;
console.log(reply);
});
console.log(reply);
I want to access variable reply of line 3 in line 5. There is no issue till line 3. A simple function instead of an arrow function will also work for me.