Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<blockquote> <p>I'm new to web development and don't fully understand the role a js framework plays in an app</p> </blockquote> <p><strong>You are new but you are lucky!</strong></p> <p>Few years ago developers had really hard time working around cross browser issues in terms of CSS (still bit of it there), event handling, animations, DOM manipulation. You had to write differnet code for each browser quite often.</p> <p>The JavaScript libraries came to life and solved the problem of developers, they do all the magic behind the scenes and you write the same code (almost always) to work in each browser. In other words, JavaScript libraries take it on their own to solve cross-browser issues by providing you with consistent set of functions to use for any browser.</p> <p>Generally, JavaScript libraries take care of these or provide these options:</p> <ul> <li>Cross-browser issues handling</li> <li>Animation</li> <li>Custom dialogs and widgets</li> <li>Ability to write lesser code</li> <li>Specific selector engine</li> <li>Creation/Modification of DOM</li> <li>Event Handling</li> <li>Utility Functions</li> <li>AJAX</li> </ul> <blockquote> <p>I've started with jQuery, but people have said I should try prototype.js or node.js for my project, which is a multiplayer strategy game.</p> </blockquote> <p>Essentially they do the same thing (mentioned above), it is up to you to decide which one you would go for. I like jQuery personally since it is easy to start with and has CSS-Like selector mechanism.</p> <p>Node.JS is completely different beast, unlike jQuery or Prototype which base on client-side JavaScript, node.js is server-side JavaScript.</p> <blockquote> <p>Is it important to select a framework early on, and making sure it does everything you need so you don't have to use multiple frameworks?</p> </blockquote> <p>It isn't important unless you need it eg depending on your needs. Though I would personally suggest you to <em>learn the JavaScript itself first</em> so that when you come to a JavaScript library later, you should be able to make most of it.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload