I need Help.... I do not find the error in this code but the result variable be undefined

Perfect. I didn’t want to make any assumptions about your knowledge.

Here is a very simple example of how to debug a backend function:

My backend code

import {getJSON} from 'wix-fetch';
export function getCatFacts1 () {

getJSON("https://cat-fact.herokuapp.com/facts")
  .then(json => console.log(json))
  .catch(err => console.log(err));
}

In the backend file you will see a little blue arrow to the left of your function, click this


Then in the tab that opens, click run


Then you will see the output in the right hand panel of your console.logs

I would start small if you aren’t sure where the problem is, meaning - just hit that weather API and console.log the response first. Once you are sure you are getting data back, you can move on