After looking from the first comment, this is how we use with ?= Operator.
const [error, data] ?= await fetch(link).json();
if(error) {
console.log(error);
} else {
console.log("Data succesfully fetched: ", data);
}
This will do the same of the first comment function