+ 10
Is JavaScript usable as a standalone language?
Pardon me if this is a somewhat naive or uninformed question, but I'm pretty much a noob when it comes to web dev and all that comes along with it. From what I know, JavaScript is typically used in conjunction with HTML and CSS to create dynamic and interactive web pages. Other than that, I've read that it also has libraries and frameworks that support a myriad of other applications such as IoT and etc, so my question is, besides it's use in website development, can I use JavaScript only without HTML?
2 odpowiedzi
+ 4
I think it can be.
But its syntac is so interwined with HTML and CSS.
for example:
document.getElementBy(...)("...").innerHTML="...";
note it says HTML!
So yeah, good luck in trying
+ 2
Node.js is typically used for servers, but it is essentially a JS interpreter in the console. Check it out!