by mg · 2y ago · 0 comments
function f1() {
x = await fetch('something');
...
}
Into this: function f1() {
fetch('something').then(x => {
...
});
}Also think how this should be translated: function f1() { x = await fetch('something'); return x + 1; }