How to read "A Dream of Red Mansions" if you don't know the characters?
Answer: Learn to read first.
First of all, two points must be made clear:
The asynchronous event-driven feature is not from nodejs, but from js.
JS is a language, a real programming language.
It’s just that the code examples in those tutorials use the browser. When I teach others js, I usually do it in the chrome console instead of the nodejs command line. None of this will affect your learning of js.
As for BOM, this is obviously a front-end (browser) thing, you don’t have to learn it. As for js features, DOM, OO, etc., they are all common to both the front and back ends.
You once mentioned that you learned C. In fact, browsers and nodejs are both platforms, and they are all platforms for running js.
When you learn C, you should probably learn it on Windows, but this does not affect your ability to program under Linux.
C language is still C language, and the standard library is still the standard library, but the platform is different. You first learn js well, and then learn the things provided by the nodejs platform.
Learning JavaScript well is a must. How can I learn calculus without knowing elementary mathematics? Who can answer this question? But if you decide to learn JavaScript in order to learn Node, here are some suggestions.
Don’t buy books randomly, first check on Google to see if there is a tutorial that suits you.
If you must buy a physical book in your own situation, I suggest you buy Turing's "Advanced Programming with JavaScript". Never buy books that only teach you DOM operations. DOM is just a part of JavaScript. You must know that what you want to learn is Node, not learning to make the ads on your website move around.
After you have a basic knowledge of JavaScript (the basics here are not just data type control structures, but some advanced features of JavaScript such as prototype chains, scopes, closures, etc. that you must also master), you can go to the Node official website. API documentation. In fact, it is better to look at the API directly than to read any tutorial. After reading it, you will find that Node can not only be used as a web server.
You can still write node if you don’t know js. Just treat node as a new language. Node will be able to learn js. (Of course you don’t know how to apply javascript front-end)
It is not recommended to learn coffee directly, wait until the basics are well established before learning.
Just understand what is event-driven, event dispatcher, what is asynchronous call, understand the operation principle of web server, etc.
If you want to write node, it is impossible not to know js, because node is js.
Everyone learns things in a different way. Some people learn in theory, but actual operation will be slower. Some people are good at practical operations, but the theory may not be very clear. How to do it depends on what suits you. If you can't even distinguish this, it will be difficult.
It’s very simple, just learn CoffeeScript. CoffeeScript also uses indentation and list comprehension, and absorbs a lot of Python stuff. You can learn Python quickly. CoffeeScript can be compiled into JavaScript. And now CoffeeScript is relatively mature.
Will I tell you if there is another artifact like pythonium? (Convert Python 3 to JavaScript.)
It is still recommended that you learn javascript first, and then learn node. In other languages such as coffeescript and typescript, you still need to learn javascript first. These are subsets or supersets of javascript.
After reading basic javascript, ignore BOM and DOM, just look at nodejs. It’s okay. I read two books, "Nodejs Development Guide" and "In-depth Introduction to Nodejs", and then also learned mongo
How to read "A Dream of Red Mansions" if you don't know the characters?
Answer: Learn to read first.
First of all, two points must be made clear:
It’s just that the code examples in those tutorials use the browser. When I teach others js, I usually do it in the chrome console instead of the nodejs command line. None of this will affect your learning of js.
As for BOM, this is obviously a front-end (browser) thing, you don’t have to learn it. As for js features, DOM, OO, etc., they are all common to both the front and back ends.
You once mentioned that you learned C. In fact, browsers and nodejs are both platforms, and they are all platforms for running js.
When you learn C, you should probably learn it on Windows, but this does not affect your ability to program under Linux.
C language is still C language, and the standard library is still the standard library, but the platform is different. You first learn js well, and then learn the things provided by the nodejs platform.
Wish you all the best in your studies
Learn javascript first, then learn node.js.
<<<----------------------------------------------- ------- There should be likes here
Don’t rush, take your time. Start with the basics, how can you run if you can’t walk
Learning JavaScript well is a must. How can I learn calculus without knowing elementary mathematics? Who can answer this question? But if you decide to learn JavaScript in order to learn Node, here are some suggestions.
You can still write node if you don’t know js. Just treat node as a new language. Node will be able to learn js. (Of course you don’t know how to apply javascript front-end)
It is not recommended to learn coffee directly, wait until the basics are well established before learning.
Just understand what is event-driven, event dispatcher, what is asynchronous call, understand the operation principle of web server, etc.
If you want to write node, it is impossible not to know js, because node is js.
Everyone learns things in a different way. Some people learn in theory, but actual operation will be slower. Some people are good at practical operations, but the theory may not be very clear. How to do it depends on what suits you. If you can't even distinguish this, it will be difficult.
It’s very simple, just learn CoffeeScript. CoffeeScript also uses indentation and list comprehension, and absorbs a lot of Python stuff. You can learn Python quickly. CoffeeScript can be compiled into JavaScript. And now CoffeeScript is relatively mature.
Will I tell you if there is another artifact like pythonium? (Convert Python 3 to JavaScript.)
It is still recommended that you learn javascript first, and then learn node. In other languages such as coffeescript and typescript, you still need to learn javascript first. These are subsets or supersets of javascript.
Javascript is required. Node.js is just server-side js
After reading basic javascript, ignore BOM and DOM, just look at nodejs. It’s okay. I read two books, "Nodejs Development Guide" and "In-depth Introduction to Nodejs", and then also learned mongo
If else for, right?
Understand some JS prototypes and scopes.
You can start writing.