简体   繁体   English

人们说用JavaScript构建堆栈或完整堆栈是什么意思,它与Node JS有何关系?

[英]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.

相关问题 当人们在JavaScript中说“对象文字”时,人们的意思是什么? - What do people mean when they say “object literal” in JavaScript? 与Django和Python相比,Node.js在JavaScript和Express之间的MEAN堆栈中扮演什么角色? - What role does Node.js play in MEAN stack between JavaScript and Express compared to Django and Python? 当人们说css中没有父选择器时,人们的意思是什么? - What do people mean when they say theres no parent selector in css? 在mean.js完整堆栈javascript应用程序上的搜索引擎优化仍然是一个主要问题,应该如何处理 - Is search engine optimization on a mean.js full stack javascript application still a major issue an how should it be dealt with node.js堆栈跟踪线中冒号后面的第二个数字是什么意思? - What does the 2nd number after the colon in a node.js stack trace line mean? 此堆栈跟踪是什么意思? - What does this stack trace mean? 当他们说“编译”我的js代码时,那些javascript前端构建工具意味着什么? - What do those javascript front-end build tools mean when they say “compile” my js codes? 他们说JavaScript是单线程的是什么意思? - What does it mean when they say JavaScript is single-threaded? V8 JavaScript堆栈跟踪,尾随数字是什么意思? - V8 JavaScript stack trace, what do the trailing numbers mean? 使用async / await时如何获取完整的Node.js堆栈跟踪? - How to get the full Node.js stack trace when using async/await?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM