res.textContent= a[Math.round(weight.value)]
let getData = fetch('https://translate.googleapis.com/translate_a/single?client=gtx&sl=auto&tl=en&hl=ru&dt=t&dt=bd&dj=1&source=icon&tk=467103.467103&q=привет', {
method: 'POST',
}).then(res => res.json());
async function anyFunk() {
let mess;
await getData.then(res => mess = res);
console.log(mess);
}
https://learn.javascript.ru/object