trim() Flashcards

1
Q

trim()

A

Функция trim() - помогает обрезать все пробелы
if (title.trim() !== “”){
addTask(title.trim());
setTitle(“”)
}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly