Module means :
"Each of a set of standardized parts or independent units that can be used to construct a more complex structure, such as an item of furniture or a building"
from google dictionary.
I can easily find which words should be replaced with programming terms and get a rough idea what it is in Node js. I assume all of you will as well.
What is require?
source :
https://steemit.com/utopian-io/@sagorahmed/node-js-basic-tutorial
Once a module is created, it could be exported and used by require func.
Or we simply require it from installed packages. like express or http.
well I handily installed express trying mern tutorial now but haven't required http nor installed it yet.
I will see soon enough tho.
-How to create a module
export.myDateTime = function(){
return Date()
}
-How to include
I could have used naver blog which is way more neat and fancy with provided decoration tools for postings and blog environment.
But here its got all the struggles uploaded that I had posted so far, I won't probably moving to Naver anyways,
but im telling you, this is the RAWEST posting page that I have ever experienced in my life provided by grand portal site.
Or maybe there is a way that I can use it more conveniently and fancy
but I just don't know how AND I don't really care.
We all can see here that I was not born to be a CSS expert nor web designer. not my thing.
...it is handy to go back to p tagged paragraph after I paste a line of code from editor.
"Each of a set of standardized parts or independent units that can be used to construct a more complex structure, such as an item of furniture or a building"
from google dictionary.
I can easily find which words should be replaced with programming terms and get a rough idea what it is in Node js. I assume all of you will as well.
What is require?
source :
https://steemit.com/utopian-io/@sagorahmed/node-js-basic-tutorial
Once a module is created, it could be exported and used by require func.
Or we simply require it from installed packages. like express or http.
well I handily installed express trying mern tutorial now but haven't required http nor installed it yet.
I will see soon enough tho.
-How to create a module
export.myDateTime = function(){
return Date()
}
-How to include
dt = require('./myfirstmodule')
I could have used naver blog which is way more neat and fancy with provided decoration tools for postings and blog environment.
But here its got all the struggles uploaded that I had posted so far, I won't probably moving to Naver anyways,
but im telling you, this is the RAWEST posting page that I have ever experienced in my life provided by grand portal site.
Or maybe there is a way that I can use it more conveniently and fancy
but I just don't know how AND I don't really care.
We all can see here that I was not born to be a CSS expert nor web designer. not my thing.
...it is handy to go back to p tagged paragraph after I paste a line of code from editor.
댓글
댓글 쓰기