toJadenCase?

    0

    0

    ibrahimibrahimli

    The code above takes a string, splits it into individual words, and then prints each word to the console.

    function toJadenCase (str){
    
      let strArr = str.split(" ")
      console.log(strArr);
      let newStr = ""
      strArr.map((words)=>{
      if(words !== ""){
            newStr += words[0].toUpperCase() + words.slice(1) + " " 
      }})
    return newStr
    }
    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.