0
iibrahimibrahimli
The code above takes a string, splits it into individual words, and then prints each word to the console.
0 Comments
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 }