Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I\'ve been noticing lately, as I\'ve played around with javascript, HTML5, and n

ID: 647229 • Letter: I

Question

I've been noticing lately, as I've played around with javascript, HTML5, and node.js for the first times that javascript seems to be a language that is used very differently (and with different syntax) depending on where it is used at. My observation with javascript is this:

-Front end javascript finds the JS embedded in HTML5 pages, where it is used to build dynamic webpages and react to events that occur on the page.

-Back end JS is used as a solo language with node.js and its associated packages to handle web page requests, data transfers, and general server tasks.

Have I accurately summarized front end versus back end JS?

Explanation / Answer

That's generally correct, not just for Javascript but for any language. Javascript just happens to be the de facto language for doing such. You could use most any language for manipulation of page elements. This is what CGI is. Javascript just happens to "live" in the browser rather than on a server. This makes things like AJAX possible, which in turn makes the modern web as we know it possible.

The reason that Javascript appears different on the "front end" versus on the "back end" is that Javascript on the front end is tied to the DOM while Javascript on the backend doesn't need to be.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote