If you are just starting JavaScript then projects are not recommended. I recommend participating in coding challenges like in hacker rank etc.
If you are pretty good with the basics of JavaScript. Then try mocking websites you visit daily. Like Netflix or YouTube or any blog website.
If you using frameworks then try adding new features that would look good in your favorite websites. Like mock the website then add extra features that have some dynamically changing data from the backend.
I hope this answers your question.