DEV Community

EXtreme Stack
EXtreme Stack

Posted on

Vanilla Javascript or it has to be node js?

Can I use vanilla javascript for server side? I've been wondering really about the extent one could actually go with writing an application with just vanilla javascript, no frameworks.

Discussion (6)

Collapse
vonheikemen profile image
Heiker

Nodejs is not really a framework, so you can write "vanilla javascript" in node.

Does it have to be nodejs? No. There are other javascript runtimes. But the only one gaining popularity seems to be deno.

Collapse
onyebuchidaniel60 profile image
EXtreme Stack Author

Thank you. I wrongly assumed nodejs was framework.

Collapse
pigges profile image
Pigges

You could maby be able to use vanilla javascript for the server side stuff. But you should atleast look into Nodejs or Deno since those are made for being used on the server side and just vanilla javascript is made for use in the browser.

Collapse
onyebuchidaniel60 profile image
EXtreme Stack Author

Yes thank you Pigges

Collapse
peerreynders profile image
peerreynders • Edited on

To put it differently - there is no "Vanilla JavaScript" on the server side.

"Vanilla JavaScript" (Vanilla JS) refers to plain JavaScript (without frameworks) running against the Web APIs as they are exposed by a browser (i.e. client side) runtime.

On the server side you could talk about:

which means using the specific server side JavaScript runtime without any additional packages.

For example for Node.js Express is just one of many frameworks intended to make the development of server rendered web sites somewhat less tedious (MDN: Express Tutorial: The Local Library website).

Collapse
onyebuchidaniel60 profile image
EXtreme Stack Author

Thank you so much. Had to read up more.