I have this var that i need to make global so i can use it in another area, i can't find away around, i tried making it global but didn't work. can i get help pls ? :)
fetch('http:google.com').then(res => res.json()).then((out) => {
var x = _.filter( out.features, ['status','online']);
console.log('Output: ', x);
}).catch(err => console.error(err));
i need to make X global var so i can use in different place in my website. for example in the next place i need just to call it var x and get the data.