Сообщение от Neznayka
|
это не правильно
|
почему?
может так для вас проще будет
<script>
"use strict";
(async () => {
let url = '...';
let response = await fetch(url);
let result = await response.json();
for (let item of result) {console.log(item)};
})()
</script>