I'm trying to assign a value to variable from a callback, but in console.log it shows me undefined.
What am I doing wrong?
var threadsList = threads(data => {
return data
})
console.log(threadsList)
I'm trying to assign a value to variable from a callback, but in console.log it shows me undefined.
What am I doing wrong?
var threadsList = threads(data => {
return data
})
console.log(threadsList)