The question is how?
One way to have fun while learning is to have a road map for learning. for example to be a front-end developer your road map may look like this
The next question is, how do I make my practice fun?
try this mindset shift;
With more fun mindset you would learn faster, you would also retain good memory of what you have learned.
If a piece of code is going to be complex or unfamiliar then write it in a language you understand better(pseudo code) first, that way you would know what you want the code to do before you even write the code. This allow you write your code faster and easier because there would be no need to think deeply before writing. It would also makes you avoid bugs in your code.
This would equally give you the opportunity to draw knowledge from what you have learned to solve the challenge.
If you want to really have fun through exercise and challenges I would suggest you practice on Hacker Rank or Hacker Earth.
The best way to learn anything is to turn it fun. Let go over what we have learned so far:
- learn the fundamentals
- Have the right mindset
- Use plain language first when writing complex projects
- Do some Javasript exercise and challenges on Hacker Rank and Hacker Earth
Happy Coding folks