Сообщество IT-специалистов
Ответы на любые вопросы об IT
Профессиональное развитие в IT
Удаленная работа для IT-специалистов
let url = "https://example.com/АА1234xx"; let data = await fetch(url, {headers: {"Accept": "application/json"}}).then(r => r.json()); console.log(data)
for (const first_letter of letters) for (const second_letter of letters) { // ... }
var a = ["А", "Б", "В", "Г", "Ґ", "Д", "Е", "Є", "Ж", "З", "И", "І", "Ї", "Й", "К", "Л", "М", "Н", "О", "П", "Р", "С", "Т", "У", "Ф", "Х", "Ц", "Ч", "Ш", "Щ", "Ь", "Ю", "Я"]; a.forEach(function(p) { let url = "https://example.com/АА1234"+p; let data = await fetch(url, {headers: {"Accept": "application/json"}}).then(r => r.json()); console.log(data) });
let a = ["А", "Б", "В", "Г", "Ґ", "Д", "Е", "Є", "Ж", "З", "И", "І", "Ї", "Й", "К", "Л", "М", "Н", "О", "П", "Р", "С", "Т", "У", "Ф", "Х", "Ц", "Ч", "Ш", "Щ", "Ь", "Ю", "Я"]; for (const fl of a) for (const sl of a) { let url = "https://example.com/АА1234"+fl +sl; let data = await fetch(url, {headers: {"Accept": "application/json"}}).then(r => r.json()); console.log(data) }