I want to get rid of these \'[]\' brackets from a string output. But I couldn\'t manage to do it. Here is how I tried;
.then((data) => (result.innerHTML = data