V
V
vovkka2018-01-30 16:30:50
JavaScript
vovkka, 2018-01-30 16:30:50

Why doesn't length work?

Good afternoon.
Help me figure out why it doesn't display the length of the string:

function ucFirst(text) {
  return text.lenght;
}

console.log(ucFirst("вася"));

Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
Yevhenii K, 2018-01-30
@vovkka

You have an error in lenght, you need length

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question