template strings daugkartinis naudojimas

    0

    0

    string

    Būdas daugiau kartų panaudoti template literals (template strings).

    const htmlStr = (tplVar1, tplVar2) => `
      <p class="${tplVar1}">
        geros ${tplVar1}
      </p>
      `
    
    htmlStr("vaisiai", "slyvos")
    htmlStr("daržovės", "morkos")
    
    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.