[英]What do people mean when they say building a stack or full stack in javascript and how does it relate to Node JS?
I am new to node js. 我是Node js的新手。 I have been learning how to use the language and still do not see the point of it.
我一直在学习如何使用该语言,但仍然看不到它的意义。 I am familiar with javascript/jQuery and angular but don't see how Node can help me with anything yet.
我对javascript / jQuery和angular很熟悉,但是还没有看到Node可以如何帮助我。 All of the explanation mention that it is a choice made when building out the stack in full stack javascript...which confused me even more!
所有的解释都提到,这是在以全栈javascript构建栈时做出的选择……这让我更加困惑! Now what is full stack javascript and what is node.
现在什么是全栈javascript,什么是节点。 Please someone explain this in the most dummified way possible.
请有人以最虚拟的方式解释这一点。
So, node.js is just javascript pulled out of the browser and has a few APIs attached to it. 因此,node.js只是从浏览器中拉出的javascript,并附加了一些API。 How exactly they did that, is another discussion.
他们如何做到这一点,是另一场讨论。 Node.js in short, is Chrome's V8 engine used to run your Javascript pulled outside of the Chrome browser and left to run as a stand-alone program.
简而言之,Node.js是Chrome的V8引擎,用于运行您的Javascript,并将其从Chrome浏览器中拉出并作为独立程序运行。 Some people, use it to run a web-server, other use it to run some scripts, and pretty much any other normal thing you can run with other languages (not that different from what you can do with python installed on your computer).
有些人用它来运行Web服务器,另一些人用它来运行某些脚本,以及几乎可以用其他语言运行的任何其他普通东西(与计算机上安装的python没什么不同)。 The advantage is that you can now run JavaScript on both your browser and outside of it.
优点是您现在可以在浏览器上和外部运行JavaScript。 Instead of learning Python/PHP/Ruby etc to run your web-server, you now just learn JavaScript.
现在,您无需学习Python / PHP / Ruby等来运行Web服务器,而只需学习JavaScript。 To be a full-stack JS dev means you can now code both server and front-end in JavaScript.
成为一名全栈JS开发人员意味着您现在可以使用JavaScript编写服务器和前端代码。
Side note, if you are just starting out as a beginner in JavaScript, please learn it as it is without worrying about node.js or whatnot. 旁注,如果您只是刚开始使用JavaScript,请直接学习它,而不必担心node.js或其他问题。 Just understand the main ideas around JS before getting ahead of yourself.
在超越自己之前,只需了解JS的主要思想即可。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.