Once you have a good understanding of the syntax, you should start practicing writing code. This can be done using online coding platforms such as CodePen, which allow you to write and test out code without having to install a development environment. You should also go through tutorials and practice challenges to get comfortable with writing code.
Finally, you should also learn more advanced concepts such as debugging and optimization. Debugging is an important skill to have when writing code, as it allows you to identify and fix errors in your code. Optimization is also important, as it allows you to make your code run faster and more efficiently.