im trying to get value from this scritp below but it's cant
let doGetVexLastInfo = (url) => {
fetch(url)
.then(res => res.json())
.then(json => {
let result = 1000 / json.ticker.last;
return result.toFixed(4);
});
}
console.log(doGetVexLastInfo(url))