The programmer interprets what is Nodejs?

Source: Internet
Author: User
Tags javascript extension

First, before we figure out what Nodejs, let's talk about JavaScript, as long as anyone who's ever developed should know that JavaScript is the most popular Front End (client)scripting language, the use of JavaScript in Web projects can be said to be more than 99%, no exaggeration to cite an example: "Now you open 100 pages, 99 are using JavaScript". So why is JavaScript so fire, in fact, the reason is very very simple, JavaScript appears to give a new vitality of the Web page, from the beginning it was only for forms validation, to now trillion web site using JavaScript to do a variety of effects and user-friendly features,     It is also difficult to write down the contributions and status of JavaScript in front of a book. See the above JavaScript introduction, many people will certainly say, it seems that the language is very good javascript, so there will be so many people to use, yes, for a really understand JavaScript (master), the voice is really good, But for ordinary JavaScript users, JavaScript is a tricky thing to do (if it's not a requirement for a boss feature, very few people will want to use it). It's too flexible, and while it's a good thing to be flexible, if one thing is flexible enough you can't control it (for example: how many people know what function means in JavaScript?). A lot of people would say that it means a function? "Haha, too young"), you will feel that this is not a good thing for users, but it seems to me that this is why it eventually to the back-end development.       For the ever-changing functionality of the backend, perhaps a flexible language allows us to write more flexible code. To get to our point, JavaScript used to be just as a front-end scripting language, a language run, a need to execute the environment, just like our Java code, it needs to run in the JVM. JavaScript is no exception, what is the execution environment of JavaScript? Yes, that's our client browser (Ie,ff,chrorme .... )。 The reason we made it into what we call Front end (client) The scripting language is because of its operating environment. Finally, one day, a US programmer, Ryan Dahl, who loves JavaScript as much as I do, has decided to use JavaScript to do something more meaningful, giving JavaScript new positioning in development, using JavaScript as Back-end (server)Programming language to do the development, my God, this idea is crazy (like a dog, one day to the cat said: "I want to start catching mice." Cat taunt said: "Oh, you, can you?"). “ so that's the problem? The real problem comesOf course, this question is not the same as the plot to ask: "Excavator technology which strong?" Ryan Dahl is not interested in thinking about such a problem. To make JavaScript the act of Back-end (server)Programming language, you must first detach from JavaScript's current execution Environment client browser. Ryan Dahl thought of a good idea, using the Google Chrome open source browser V8 engine to build a new JavaScript execution environment (note that this is only used by the browser to execute the JavaScript engine, not that we use the browser client),      And in the V8 engine based on the addition of the server programming language should have features such as file systems, modules, packages, operating system APIs, network communications, and thus a new platform named Nodejs. NodeJs = JavaScript performs the function of the environment +javascript extension. A simple understanding of Nodejs is a platform that allows JavaScript to be run out of the browser, and this platform enhances JavaScript functionality. Related resources:Http://nodejs.org/http://baike.baidu.com/link?url=2gAntkpn5pKVgo76n_x4JFL1Vkl7VqASGNZQ6Pz50m6R0aHrJXqz12gU7ddr Jkkfrb_3bz1jhi4h4ah449kllk concern

The programmer interprets what is Nodejs?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.