GoConqr has a new look! Let us know what you think.

Module 27 of 35 · Text

#27

welligton costa

/ *

Métodos de array - .join ()

-------------------------

Complete a função de capitalização

Deve retornar uma string com a primeira letra em maiúscula

Por exemplo, capitailise ("hello") deve retornar "Hello"

Dica: use o método de string .split () e o método de array .join ()

* /

 

 

function capitalise(str) {}

/*

DO NOT EDIT BELOW THIS LINE

--------------------------- */

var name = "daniel";

console.log(capitalise(name));

console.log(capitalise("hello"));

 

/ *

RESULTADO ESPERADO

---------------

Daniel

Olá

* /

Instructions

You must submit an attempt for this quiz to progress. You can submit it after the last question.

Go to the chosen module

Feedback

What is it about?

What do you think of the new look?

How do you like it?