Is It Wrong to Focus on Learning Pure JavaScript Before the DOM?

0
2
Asked By CreativeCoder42 On

I'm pretty comfortable with Python and Flask, but diving into JavaScript has been tricky since most of the resources out there tie everything to HTML. My goal is to develop games like Pong or Hangman in the terminal first so I can really get the hang of the JavaScript syntax. Can anyone recommend a course that teaches JavaScript as a standalone language before moving on to web development?

1 Answer

Answered By TechSavvyNerd On

JavaScript is mainly used for interacting with the DOM, so keep in mind that most JS courses will incorporate HTML. That said, you don’t necessarily need to start with the DOM to get the hang of JavaScript itself. It's a good idea to understand the basics first, but for making things like games, you'll eventually have to deal with the DOM, especially if you're looking for visual elements.

PythonPro123 -

I see what you're saying! I know HTML and have done some web work with it, so I get where the DOM is key. But I just thought starting with pure JS would give me a solid foundation like when I learned Python.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.