i have been trying to understand how JavaScript can function as server-side language as i am used to JavaScript for client-side work such as AJAX. can someone explain to me succinctly, i have Java and OOP experience and can't wrap my head around the fact that since JS is stateless.
Much thanks, if answers are really in-depth and profound i will make this into a community wiki. I know nodeJS accomplishes server-side coding using JS, but is it because it is compiled using Google V8 engine?
On the other hand, in AJAX, JS is used as logic on the page..