Node.js includes JS completely, I mean any thing that can be found in the documentation for JS you to use in your code Node.js?

0 like 0 dislike
6 views
Given that Node.js this is the back end.
by | 6 views

3 Answers

0 like 0 dislike
No.
Only
\rhttps://developer.mozilla.org/en-US/docs/Web/JavaS...
+
\rhttps://nodejs.org/dist/latest/docs/api/

But some IPAS have a browser polyfills - see individual project.
by
0 like 0 dislike
Consider it this way:
Is javascript is a language tool - it is the same for nodejs, browser and can also be used in other environments. It is simply a language with which you interact with the provided environment interfaces (API). Together with the language are the basic types (Number, String, Boolean, null, undefined, Date).

Is there an API is a set of classes, modules and methods that are specific to your environment. From nodejs is a set of modules, and browser your classes, methods and global objects. It turns out that you can write some code that will run on nodejs and in browsers if the code will not affect the API. For example if you write a game, can the game logic be abstracted from the API and write it once and it will work on backend and frontend. Thus it will be possible to start a simulation of the game player on the backend. Or you have an application where a server receives some data structure and you can write only once the classes who work with them (parsing, etc) and use from here and there.
by
0 like 0 dislike
No, not all. Method alert() fails to apply, as I didn't try.
by

Related questions

0 like 0 dislike
4 answers
0 like 0 dislike
2 answers
asked Apr 4, 2019 by nepster-web
0 like 0 dislike
3 answers
0 like 0 dislike
2 answers
110,608 questions
257,186 answers
0 comments
33,606 users