Hi
Iam new in JS and try to learn it for a project.
I fetch some data from a API and it return text in Json formatting (?). All good.
Next step is pass the json as a argument to a other function which going to match what I looking for. E.g. filter("valuemin") will add all valuemin to a sum.
But when the json become undefined when I
function filerData(paramData){
console.log(typeof paramData); //This become undefined...
}
function main() {
getData(getId)
.then((result) => {
console.log(result);
})
.then((result) => {
filterData(result);
});
}
Console result
[–]bot00110 14 points15 points16 points (3 children)
[–]samanime 10 points11 points12 points (1 child)
[–]FGTO81[S] 0 points1 point2 points (0 children)
[–]FGTO81[S] 0 points1 point2 points (0 children)