Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,158,135 members, 7,835,806 topics. Date: Tuesday, 21 May 2024 at 03:15 PM

Nodejs Is A Language Not A Runtime. - Programming (2) - Nairaland

Nairaland Forum / Science/Technology / Programming / Nodejs Is A Language Not A Runtime. (822 Views)

Bun: New Javascript Runtime Faster Than Nodejs and Deno / Facing Problem Integrating Paystack With Nodejs / How To Pick A Language For That Next Project (2) (3) (4)

(1) (2) (Reply) (Go Down)

Re: Nodejs Is A Language Not A Runtime. by kpakodev: 10:48am On Feb 11, 2023
chukwuebuka65:



If that is the case, it will make sense to have a name that describes the combination of nodejs and javascript as one language just like other scripting languages. But until that happens , nodejs for me is language .

Nodejs is a runtime environment for javascript simple.

What is a runtime enviroment?
a runtime enviroment is a hardware or software that run a program, nodejs can run javascript.
Re: Nodejs Is A Language Not A Runtime. by kpakodev: 11:01am On Feb 11, 2023
chukwuebuka65:


Before nodejs there was nothing like javascript on the frontend. Javascript was javascript the one we all know, that is the javascript on the frontend as you call it. Those features added by nodejs is why I said it should be a language on its own.


do you know things like:

document.getElementById()
document.getElementsByClassName()
window.alert()
window.navigator
document.write

and so more, are not in javascript?
the are been added by the browser buitin runtime enviroment(just like the way some application provide api), the same with nodejs
Re: Nodejs Is A Language Not A Runtime. by chukwuebuka65(m): 12:19pm On Feb 11, 2023
kpakodev:



do you know things like:

document.getElementById()
document.getElementsByClassName()
window.alert()
window.navigator
document.write

and so more, are not in javascript?
the are been added by the browser buitin runtime enviroment(just like the way some application provide api), the same with nodejs

You guys never told us that. No tutorial or blog or articles I have read has ever made mention of these as browser api’s and not part of javascript itself .
If so , which features constitutes of javascript then. Variable? If statements? While loops? Functions?
Re: Nodejs Is A Language Not A Runtime. by kpakodev: 1:04pm On Feb 11, 2023
chukwuebuka65:


You guys never told us that. No tutorial or blog or articles I have read has ever made mention of these as browser api’s and not part of javascript itself .
If so , which features constitutes of javascript then. Variable? If statements? While loops? Functions?

https://developer.mozilla.org/en-US/docs/Web/API

1 Like

Re: Nodejs Is A Language Not A Runtime. by kpakodev: 1:15pm On Feb 11, 2023
kpakodev:



do you know things like:

document.getElementById()
document.getElementsByClassName()
window.alert()
window.navigator
document.write

and so more, are not in javascript?
the are been added by the browser buitin runtime enviroment(just like the way some application provide api), the same with nodejs

Most of those things are add to js by the web browser built-in runtime environment to make it able to use those api from JavaScript but they aren't in the core language it self.... You won't find any of those in the v8 or spidermokey js engine specification the same you won't find those features nodejs add to js on v8 engine specification

(1) (2) (Reply)

Its Wonderful How Php Keeps Evolving / Web Tv Help / How Do I Reach Interswitch?

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 15
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.