Bu yerda sizda kerakli funksiya bor: JavaScript kodi ``` function createMatrix{n}{let matrix = []; for (let i = 0; i < n; i++) {matrix.push{i); } return matrix; } ``` Ushbu funksiya "n" sonini kiritish uchun foydalanadi va bo'sh matritsa yaratadi.
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence