isPangram?

    0

    0

    ibrahimibrahimli

    The function isPangram takes a string as input and looks for any string that is a pangram. A pangram is a string that consists of at least five letters.

    function isPangram(string){
      let alphabet = 'abcdefghijklmnopqrstuvwxyz'.split('')
      let str = string.toLowerCase()
      for(let i = 0; i< alphabet.length; i++){
        debugger
        if(str.indexOf(alphabet[i]) < 0){
          return false
        }
      }
      return true
    }
    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.