A Simple and Effective way to Learn & Practice JavaScript.

The best way to practice JavaScript is to work on the project.

“Don’t take on the Project whole at once.”

Don’t try to build all features at once.

Go Step by Step.

List of Sample projects

  • ToDo List
    • Music Library
    • Contact/Phone Book
    • Any project that involves CRUD operations.

For e.g. “ToDo List”

  • Add ToDo Items & simultaneously update the View/DOM for the newly added item
  • Delete the ToDo Item and update a view
  • Edit the ToDo item and reflect the changes
  • Can be marked and complete or incomplete
  • Try to add a deadline/completion date to todo item
  • Add Location to the to-do items.
    • This above was the single list, now make multiple lists in a single application
    • Naming and Renaming the lists
    • Doing AJAX for small parts of the ToDo list and Multiple User registration and Login & etc…

Some key points which helped me

  • Code every day (this one is an absolute must).

It’s just like muscle memory, the more you code the more it becomes natural.

  • Embrace unit testing as early as possible in your career as a programmer.
  • Anytime you learn a new concept, see how you can improve past code.
  • Coding is a process to get to the most suitable and optimized and not to start with perfect
  • If you follow a video tutorial, type all of the coding snippets – DO NOT COPY AND PASTE IT

Read other people’s code, if you follow good JS projects and people go to their Github account and read some of the code.

Go to a site like Hackerrank or Codewars and solve problems using JavaScript.

Knowing pure JS will make you a key engineer who can solve complex problems.

I would say there are two things,

And they apply to all programming languages as well.

  • Write lots of code
    • Get it code review by a senior programmer

There is no such best way to learn javascript, it totally depends from one person to another.

For some, it might be by reading books, and for some, it might be by watching video lectures.

But as per my experience, the best way to learn JavaScript is by “learning by doing”.

I hope this post is helpful and you have learned about how to use hooks in your React app.

Do share on your socials if you find it helpful.

If you want to read more about ReactJS and JavaScript then start reading some of recent articles.

If you like this post, Now it’s time to take the next step by subscribing to my newsletter and following me on Twitter.

ByteSizedBets- JavaScript
A newsletter on Career, Business, Writing and Life advice for Engineers