impactbyte-haku / projects

🌐 Projects
https://gitlab.com/impactbyte/learn/course-fullstackweb
9 stars 1 forks source link

Project JavaScript Global Objects & Methods #22

Open mhaidarhanif opened 5 years ago

mhaidarhanif commented 5 years ago
dickymr commented 5 years ago

https://github.com/dickymr/project-javascript-number-methods https://github.com/dickymr/project-javascript-string-methods https://github.com/dickymr/project-javascript-math-methods

mhaidarhanif commented 5 years ago

Project Taman Safari

https://github.com/impactbyte-haku/project-taman-safari

mhaidarhanif commented 5 years ago

Project People Data

https://github.com/impactbyte-haku/project-people-data

rizariza69 commented 5 years ago

https://github.com/rizariza69/project-javascript-number-methods https://github.com/rizariza69/project-javascript-math-methods https://github.com/rizariza69/project-javascript-string-methods

arifinoid commented 5 years ago

https://github.com/arifinoid/project-javascript-string-methods https://github.com/arifinoid/project-javascript-number-methods https://github.com/arifinoid/project-javascript-math-methods https://github.com/arifinoid/project-javascript-array-methods

BintangSaputra commented 5 years ago

https://github.com/BintangSaputra/javascript-string-method https://github.com/BintangSaputra/javascript-number-methods https://github.com/BintangSaputra/javascript-math-methods

codedarlyn commented 5 years ago

https://github.com/codedarlyn/project-javascript-number-methods

nchristanto commented 5 years ago

https://github.com/nchristanto/project-javascript-number-method https://github.com/nchristanto/project-javascript-string-method

mattjawascript commented 5 years ago

https://github.com/mattjawascript/project-javascript-string-methods https://github.com/mattjawascript/project-javascript-number-methods https://github.com/mattjawascript/project-javascript-math-methods https://github.com/mattjawascript/project-javascript-array-methods

mhaidarhanif commented 5 years ago

Transform to Title Case

const transformToTitleCase = text => {
  let textArray = text.split(' ')

  const titleCasedTextArray = textArray.map(text => {
    const titleCasedLetter = text.charAt(0).toUpperCase()
    return titleCasedLetter + text.slice(1)
  })

  return titleCasedTextArray.join(' ')
}
const transformToTitleCase = text =>
  text
    .split(' ')
    .map(text => text.charAt(0).toUpperCase() + text.slice(1))
    .join(' ')

console.log(transformToTitleCase('nurhadi aldo presiden'))
yevgenysiregar commented 5 years ago