ciklas pačiame template literals

    0

    0

    template-literals

    ciklas pačiame template literals

    let iReal = 5;
    const markup = `
      ${Array(41).fill().map((item, i) => `
        ${i > 0 ? `<div class="W${i * iReal}px"><code>.W${i * iReal}px</code></div>` : ``}
      `).join('')}
    `;
    
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.