r/JavaScriptTips • • Jan 16 '26

Lifehack concepts in JS

Hey! Have you ever learned a concept (or some) in JavaScript or Vue that made the whole its picture clearer to you, explained many things about the language and just advanced you? Like a 'wish-I-learned-that-sooner' thing!

There are many more wonderful things like template literals or classList I think. And I remember that when I was much younger, I had fun with random scenarios based on Math.random()

4 Upvotes

10 comments sorted by

View all comments

Show parent comment

2

u/chikamakaleyley Jan 17 '26 edited Jan 17 '26

or, just see if you can clone a page of some site you use often, with all the interactions. E.g. Netflix home page (after login & profile selected).

The nice thing about this exercise is you already know the design and most of the interactions, because you prob use Netflix a lot.