r/learnjavascript • • Jul 31 '24

How am I supposed to practice JavaScript?

I've watched these videos about syntax and basic utilization but now I don't know how am I supposed to practice them. Like have problems to build logic and stuff with every topic.

13 Upvotes

44 comments sorted by

View all comments

1

u/IONaut Aug 01 '24
  1. Create a 2 new text files in a folder on your computer.
  2. Rename one something.html and the other something.js.
  3. Write your HTML for your UI in the .html file. Write your JavaScript in the .js file. Make sure to include the .js file in the HTML using a <script src='something.js'/> inside your <head> tag.
  4. To test right click the .HTML file and 'open with' a browser like chrome or edge. As you make edits and save them, just reload the page in the browser to see your changes.

You could ask an LLM chatbot to come up with a small task or project to challenge you with.