sahandghavidel/HTML-CSS-JavaScript-projects-for-beginners

Without any input empty list is created

Mihir-Maurya opened this issue · 1 comments

When we don't give input and press Enter then it creates a empty list.

use if(!input.trim()){return} to fix it