Instruções

Passo 6

Para a próxima parte do projeto, o bot ensinará a trabalhar com a propriedade length da string. Comece criando uma variável chamada strLengthIntro. Em seguida, usando a sintaxe de template literals, atribua a string Here is an example of using the length property on the word [subject]. à variável strLengthIntro. Substitua [subject] pela variável subject como você fez anteriormente. Finalmente, exiba o valor da variável strLengthIntro no console.

O que fazer:

Testes:

  • Você deve ter uma variável chamada `strLengthIntro`.
  • A variável `strLengthIntro` deve ser uma string.
  • Você deve usar a sintaxe de template literals para atribuir a string `Here is an example of using the length property on the word [subject goes here].` à variável `strLengthIntro`.
  • Você deve exibir o valor da variável `strLengthIntro` no console.

Console