Albatta, bu erda sizda xuddi shunday javascript kodi yaxshilangan formatda: ```javascript function generateArray(n) { const result = []; for (let i = 0; i <= n; i++) { result.push(i); } result.push(-1); return result; } // Foydalanish misoli: const n = 5; const array = generateArray(n); console.log(array); ``` Umid qilamanki, endi u ko'proq o'qiladi.
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence