It's my first question.
So, I'm using NodeJS + Express.
Here's my code:
request(urlPrice, function(err, resp, body){
    priceInfo = JSON.parse(body),
    medianPrice = priceInfo.median_price,
    changePrice = medianPrice.replace(',','.'),
    finallyPrice = parseFloat(changePrice).toFixed(2);
});
console.log(finallyPrice);
What can I do? Because, in console.log() the finallyPrice variable is undefined.
Please, help me.
 
     
     
    