Тёмный

Modules in NodeJS 

Piyush Garg
Подписаться 165 тыс.
Просмотров 115 тыс.
50% 1

Hey Everyone, In this video, we will look at modules and require function in NodeJS. We'll see how we can create our own modules and export them.
► Complete Full Stack Web Developer RoadMap 2023: • Complete Full Stack We...
► Master NodeJS Playlist: • Master NodeJS
Quick Links
Node.JS Website: nodejs.org/en/
Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine. It allows developers to run JavaScript on the server side, creating server-side applications with JavaScript.
► My Website: www.piyushgarg...
My Gears
► My Girlfriend: amzn.to/3WD6FRp
► Apple MacBook Laptop: amzn.to/3WBJgQn
► Anker USB Hub: amzn.to/3GhZSr0
► Blue Yeti Microphone: amzn.to/3YKZ9FT
► External 27” Monitor: amzn.to/3Vp3xaO
► Logitech MK295 Wireless Keyboard and Mouse: amzn.to/3DuL1bB
► Seagate Expansion 1TB External HDD: amzn.to/3QMm5Q8
► Tripod: amzn.to/3S4OwK4
► Ring Light: amzn.to/3YLf8DR
Disclaimer: All the links above are affiliate links.
Social Links
► Twitter - / piyushgarg_dev
► LinkedIn - / piyushgarg195
Video Titles
What is NodeJS?
How does NodeJS Work?
Modules in NodeJS
Require Function in NodeJS
Exports in NodeJS
NodeJS in Hindi
Tags
#nodejs #javascript #developer #javascriptinhindi #webdevelopment #webapp #realtimeapp #serverside #nonblockingio #tech

Опубликовано:

 

6 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 131   
@silentsagateller
@silentsagateller 6 месяцев назад
Omg....nobody explained it like this. I can guarantee this is the best explanation ever on modules. Thank you so much
@slyjain
@slyjain Год назад
really an under rated channel for now...... i really hope it grows exponentially...
@ankitaggarwal8556
@ankitaggarwal8556 8 месяцев назад
Agree with your comment brother.
@pabloescobar.exe.
@pabloescobar.exe. Год назад
Best playlist on yt to learn backend
@raorao7329
@raorao7329 23 дня назад
Patiyala waale bro Aapke chote bhai ki friend mere saath padhti hai iit jammu me . She suggested me your channel and it is really nice ❤‍🔥❤‍🔥.
@chethanchethu2292
@chethanchethu2292 5 месяцев назад
Your Teaching hits right into my head. The content and speed are very precise. Happy that I got your playlist after a long search for nodejs course
@rikishi555
@rikishi555 Год назад
I discovered that you are a very good teacher. Thank you so much!
@CodingIQ
@CodingIQ 2 дня назад
Now that i learn Modules from you. Its time to post a video on my youtube channel to make sure i understand it well enough. Thanks sir.
@tusharsingh1915
@tusharsingh1915 2 месяца назад
Started this series on 22-06-2024. Now let's see in how many days i can understand the node.js and complete the series.
@arpitsolanki6612
@arpitsolanki6612 Месяц назад
Kitna hua bhai
@tusharsingh1915
@tusharsingh1915 Месяц назад
@@arpitsolanki6612 bhai completed, bss voh mvc model vali video mein kaafi time lga tha..
@arpitsolanki6612
@arpitsolanki6612 Месяц назад
@@tusharsingh1915 nice
@Hitesh_sigma
@Hitesh_sigma 29 дней назад
​@@tusharsingh1915puri series kitne din me ki ?
@tusharsingh1915
@tusharsingh1915 29 дней назад
@@Hitesh_sigma around 45 din mein..
@jeetsharma31179
@jeetsharma31179 7 месяцев назад
YT PE IS SE BADA UNDERRATED CHANNEL ABHI TAK NAHI DEKHA, PIYUSH SIR DESERVE MILLION SUBSCRIBERS, I WILL DEFINITELY SUGGEST TO ALL MY FRIENDS TO START LEARNING WITH PIYUSH SIR, THANKYOU SIR FOR PROVIDING VALUABLE CONTENT FREELY.
@cb9066
@cb9066 3 месяца назад
ab samjha learning me itna confusion kyu ho rha tha... mera basics he clear nahi tha... best tutorial so far
@saqibhussainvlogs
@saqibhussainvlogs 12 дней назад
I have started learning backend first youtube recommend me sheryians then chai aur code, i stop because they are not beginner friendly than i find this guy this guys is perfect for beginners
@varunupadhyay2488
@varunupadhyay2488 8 месяцев назад
Very underrated channel..I don't know why student haven't discovered this playlist until now
@takibulislamfuad8282
@takibulislamfuad8282 13 дней назад
Hi, Piyush This is the first time I've watched your videos and its amazed me because your teaching style is exactly what I was looking for. I just cant thank you enough!
@muhammadarish6796
@muhammadarish6796 4 месяца назад
Simple, concise and quality content. After watching first video, i had hit the subscribe button. Lv from PK
@user-hg1xv2lh7o
@user-hg1xv2lh7o 5 месяцев назад
bhaisaaahaaab zabardast......................................Simply awesome!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Dil Jeet liya bhaijaan aapne. Jazakallah khair bhai...I am not sure why your channel is unnoticed. I can say, your explanation is the best so far I have seen on youtube....Your content is definitely next level...Thank you for such valuable content
@safiamanzoor5890
@safiamanzoor5890 4 месяца назад
i am gratefull k mujy ye playlist mil gyi, thank you so much sir!
@AlokKumar-ru7us
@AlokKumar-ru7us Месяц назад
Wow, amazing video sir, i don't know why other youtubers are getting more views but you explained better than all of them. Thank you sir.
@anushiagrawal
@anushiagrawal 2 месяца назад
Truly your nodeJS series content is unbeatable. Keep up the good work Piyush. May your channel grow by leaps and bounds!! Bcz you truly deserve it.
@shiveshanand5812
@shiveshanand5812 2 месяца назад
Beautiful explanation! Came here to revise NodeJS, but learned a lot of new things. Going to watch the whole playlist now!
@mohitchandola3435
@mohitchandola3435 Год назад
learning a lot from ur videos.... great explanation......itne calm kaise rehte ho...??😁💥
@piyushgargdev
@piyushgargdev Год назад
Thankyou Mohit 😇🙌
@sashirkl
@sashirkl Год назад
I have never given like to any video. But i am giving it to u. Aapka channel bahut speed badhega yeh mera word hai
@farheenkhan235
@farheenkhan235 11 месяцев назад
thank you sir for such informative video you are a perfect teacher love your way of teaching i think it is a best playlist in the entire youtube😇🥰🥰
@adeshdhandre3652
@adeshdhandre3652 11 месяцев назад
next level content sir thank you
@vasantvyas2512
@vasantvyas2512 5 месяцев назад
thank you so much bro..... yesterday i was looking for a playlist from the couple of weeks to learn node js and yesterday randomly suggested your channel, and now i am enjoying node js. once again ….thanks a lot bhai 💌
@user-wm7rf1dl3n
@user-wm7rf1dl3n 10 дней назад
thank you so much amazing teaching💕💕
@arshiashahid8607
@arshiashahid8607 Месяц назад
best explanation. simple and clear. thanks alot
@sneha_06.
@sneha_06. Месяц назад
Well explained.. thank u sir😊
@deeppanchal5102
@deeppanchal5102 Месяц назад
Very good explaination atleast better than chai coffee , Those who know know
@muhammad_haseeb_pk
@muhammad_haseeb_pk 3 месяца назад
I think you are better and way so much good more than codewithharry and Apnacollage good sir really appreciated
@muhammad_haseeb_pk
@muhammad_haseeb_pk 3 месяца назад
sir most underrated channel hope you will achieve more and more in future bretter than million of paid courses
@sufiyanpatel6241
@sufiyanpatel6241 2 месяца назад
Best Teaching 👌
@kreevek
@kreevek 3 месяца назад
I swear , I dont judge anyone but this explanation is really underated ,
@TahaTanveer-in1bl
@TahaTanveer-in1bl 6 месяцев назад
Piyush bhai tum kirak hai , yt pe isse bada under rated channel nahi hoga .
@shaktii2181
@shaktii2181 5 месяцев назад
very good way explain...thanks boss
@6.squash.936
@6.squash.936 Год назад
Omg what a lovely series 😍, its 1 am now and i am 4 videos in , will go to sleep once i am done with the playlist
@shi-nee7966
@shi-nee7966 Год назад
you show so many ways to do similar task bro my mind gets flabbergasted. lmao.
@piyushgargdev
@piyushgargdev Год назад
Thank you so much for supporting 🚀
@aloratg3226
@aloratg3226 2 месяца назад
bro u have got tier teaching
@santoshbhujbal5650
@santoshbhujbal5650 2 месяца назад
Very helpful video sir❤❤❤ Thank you sir🎉🎉
@_hulk748
@_hulk748 2 месяца назад
Great video sir 🙇‍♂🙏✨💖
@sourabhkushwaha4171
@sourabhkushwaha4171 7 месяцев назад
Hats off ❤❤
@Gamer_with_knowledge
@Gamer_with_knowledge 4 месяца назад
Thanks for the video man , Great explanation and quality :)
@ShubhamG800
@ShubhamG800 2 месяца назад
I love the way you explain.
@rishisingh1034
@rishisingh1034 25 дней назад
great explanation
@ravideveloper1059
@ravideveloper1059 8 месяцев назад
1:08 Thala for a reason 🤌 7
@Ari-pq4db
@Ari-pq4db 5 месяцев назад
Awesome ❤
@ShivendraPratap524
@ShivendraPratap524 Год назад
Bhaiya continue aapka ke video follow kar rha hu, Is series me aage kya express aur mongodb cover hoga please tell
@piyushgargdev
@piyushgargdev Год назад
Yes Express MongoDB everything would be covered!
@ShivendraPratap524
@ShivendraPratap524 Год назад
@@piyushgargdev project also??
@VikasSharma-kc2oc
@VikasSharma-kc2oc Год назад
@@piyushgargdev and also add authentication
@infjdeepak
@infjdeepak Год назад
@@piyushgargdev also upload MERN projects.
@nikshadali50
@nikshadali50 Год назад
I appreciate you for great explanation keep it up
@ahmedbaig8543
@ahmedbaig8543 2 месяца назад
Really Like your Video
@MATH_VIBE
@MATH_VIBE 2 месяца назад
crystall and clear
@jsdhami1020
@jsdhami1020 10 месяцев назад
really awesome brother, love from Nepal 🇳🇵
@ArunKumar_237
@ArunKumar_237 2 месяца назад
Thank you Bhayya
@karanbatra
@karanbatra 21 день назад
easy pissy thankyou sir
@laibaadnan3659
@laibaadnan3659 4 месяца назад
amazing explaination
@spdwivedi5925
@spdwivedi5925 5 месяцев назад
Badhiya lecture tha , maza aaya padhne me
@RoshanSingh-di2vc
@RoshanSingh-di2vc 7 месяцев назад
I have one question?........how is proper way of study nodejs?.....is we have to read documentation?
@keyursathvara7264
@keyursathvara7264 4 месяца назад
awesome explanation ❤
@chiku8209
@chiku8209 Год назад
bhaiya thankyou ,bohot badhiya explanation
@mahakaalgaming25
@mahakaalgaming25 5 месяцев назад
very nice explaination
@top-10n78
@top-10n78 9 месяцев назад
Very well Teachings 🎉
@user-sg7pp7bv4l
@user-sg7pp7bv4l 6 месяцев назад
you are amazing....! cool teacher
@MuzammilHussain1
@MuzammilHussain1 6 месяцев назад
Good Explaining
@khushisinha3456
@khushisinha3456 Месяц назад
🎯 Key points for quick navigation: 00:38 *🧩 Modular programming divides the code base into smaller modules for better organization.* 01:43 *📁 Creating different files for different functions/modules helps in better code maintenance.* 02:24 *📥 Use the "require" function to import modules in Node.js, similar to importing packages in other programming languages.* 05:24 *📦 Value is being exported from the module.exports* 05:40 *🛠️ Function add is working fine* 05:52 *🧮 Addition function is exported* 06:11 *🧩 Understanding the approach for functions* 06:30 *🧠 Correcting function errors* 07:03 *💡 Debugging and resolving value overrides* 07:47 *🚀 Using destructuring for clean code* 08:16 *📁 Exporting functions in multiple ways* 09:26 *📦 Utilizing exports to manage importing and exporting data* 10:09 *🔁 Implementing various ways to export functions* 10:37 *📦 Functions are properties and can be named freely* 11:07 *🎛️ Use exports to expose functions and values in Node.js* 12:31 *📁 Understanding file system in Node.js for file handling* 13:44 *🔒 Cryptography modules in Node.js provide powerful tools for encryption and hashing* 14:55 *📦 Modular programming in Node.js involves requiring packages and making the program modular* Made with HARPA AI
@l-_._-l
@l-_._-l 7 месяцев назад
00:02 Understanding modular programming in NodeJS 02:21 Importing modules in NodeJS 04:19 Exporting functions in NodeJS modules 06:17 NodeJS modules allow organizing code into reusable units 08:17 Exporting and importing functions and objects in NodeJS 10:00 NodeJS modules can be exported multiple ways 11:48 Exporting functions and importing required functions 13:44 In NodeJS, importing packages is similar to Java and C++ Crafted by Merlin AI.
@not_amanullah
@not_amanullah 5 месяцев назад
this is helpful ❤
@Muhammad-Ahmer.
@Muhammad-Ahmer. 6 месяцев назад
maza aa gaia yar
@ahyousee
@ahyousee 9 месяцев назад
npm not working in webstorm what to do??
@Anku-b9
@Anku-b9 Месяц назад
11:27 "module.exports sirf ek hi bar use hota hai" se ye matlab tha ki we can just do module.exports = { func1, func2,..... }; not like module .exports = { }; then another module.exports = { }; in next line?
@nishu20501
@nishu20501 4 месяца назад
amazing bhai
@ujjwalgupta6920
@ujjwalgupta6920 8 месяцев назад
You r too good sir
@yamelite7520
@yamelite7520 4 месяца назад
Very amazing
@iamparmjeetmishra
@iamparmjeetmishra 4 месяца назад
Thank you
@abhishekchoudhary3076
@abhishekchoudhary3076 17 дней назад
command + space is not showing any suggestion in mac, i already disabled the system shortcut for spotlight which was there for command + space. How to solve?
@jyotiprakashnayak942
@jyotiprakashnayak942 3 месяца назад
Thank you.
@tick-tech-talk
@tick-tech-talk Год назад
Which vs code theme extension u use?
@gaganduggirala9031
@gaganduggirala9031 4 месяца назад
what extensions should we install to run these codes
@satyamjha-codeindwala6666
@satyamjha-codeindwala6666 6 месяцев назад
Modules in NodeJS
@ZeeshanHaider-qu9by
@ZeeshanHaider-qu9by 7 месяцев назад
and the course is amazing
@adinarayanareddy3226
@adinarayanareddy3226 Год назад
Good Video...👍🏻
@piyushgargdev
@piyushgargdev Год назад
Thanks 👍
@MillionaireBull
@MillionaireBull 11 месяцев назад
Awesome 🎉
@dev.subham01
@dev.subham01 Год назад
You are God sir❤
@alexdsdebasis
@alexdsdebasis 8 месяцев назад
maja aa gaya sir
@Adarsh_agrahari
@Adarsh_agrahari 11 месяцев назад
Thank u bhaiya
@SulavGhimireeee
@SulavGhimireeee 8 месяцев назад
Thanks bro
@googlebaba4045
@googlebaba4045 Год назад
thank you sir
@not_amanullah
@not_amanullah 5 месяцев назад
thanks ❤
@sanvisingh9512
@sanvisingh9512 21 день назад
how to get code intellisense since I cannot get one for instance I'm not getting recommendation for 'module' while typing 'mod' or for 'export' while typing say 'exp'.Can anyone please help?
@VikasSharma-kc2oc
@VikasSharma-kc2oc Год назад
Great
@mma-dost
@mma-dost Год назад
Bhaiya aapne firebase project jo aap bol rhe the last main banayege wo bana do please if possible ?
@brandwavestudio
@brandwavestudio 9 месяцев назад
Which mic you use to record this video? Can you please tell me a mic name and its configration
@ZeeshanHaider-qu9by
@ZeeshanHaider-qu9by 7 месяцев назад
sir plz clear one thing that why Rhyan preferred to embed V8 with C++ . was C++ running outside of browser soon after it been launched?
@Shubhamsatpute112
@Shubhamsatpute112 3 месяца назад
exports.add= (a,b) => a + b; TypeError: func.add is not a function at Object. why????
@sumitbadola2976
@sumitbadola2976 Год назад
sir plz aap mean, mern k tutorial banao ...share krne ka jimma hamara rahega..
@umangtiwari1319
@umangtiwari1319 7 месяцев назад
how to pass a variable instead of a function using exports?
@shi-nee7966
@shi-nee7966 Год назад
damn, also commenting for the algo. :))
@a-square-99
@a-square-99 6 месяцев назад
Can't we use export and import?
@santoshkumar-vu5pj
@santoshkumar-vu5pj Год назад
We can't use import export like react?
@piyushgargdev
@piyushgargdev Год назад
In Plain NodeJS, No! We can't.. It's in experimental mode right now. You can set type to module incase you want to use. Ref: www.geeksforgeeks.org/how-to-use-an-es6-import-in-node-js/
@ShivendraPratap524
@ShivendraPratap524 Год назад
@@piyushgargdevsir, but while coding there was a option which, on clicking , it converted the require to react style import
@ShivendraPratap524
@ShivendraPratap524 Год назад
@@piyushgargdev by the way, new video kab upload hoga sir
@piyushgargdev
@piyushgargdev Год назад
@@ShivendraPratap524 But, If you try to run it, it would throw an error
@ShivendraPratap524
@ShivendraPratap524 Год назад
@@piyushgargdev thanks for telling
@rajatchaurasia2733
@rajatchaurasia2733 6 месяцев назад
how to use import in nodejs file
@therowdy3996
@therowdy3996 9 дней назад
Just like if u used import in JavaScript code
@VikasSharma-kc2oc
@VikasSharma-kc2oc Год назад
Thode lengthy video banaoo bro
@shi-nee7966
@shi-nee7966 Год назад
lewngthy bana ke kya hoga bro? man gave you so much info in 15 mins. whats impt to you? knowledge or timelength of vid?
@remo_ez_gaming
@remo_ez_gaming 11 месяцев назад
So modules are basically files that contains some code and we need to import export some code from one module to another to use them :)
@VishalSingh-er2bl
@VishalSingh-er2bl 9 месяцев назад
wow.......
Далее
File Handling in NodeJS
18:17
Просмотров 104 тыс.
OG Buda - Сабака (A.D.H.D)
02:19
Просмотров 77 тыс.
How NodeJS Works?
14:23
Просмотров 124 тыс.
Learn JSON in 10 Minutes
12:00
Просмотров 3,2 млн
WTF Do These Even Mean
13:44
Просмотров 85 тыс.
Handling URL's in NodeJS
20:37
Просмотров 88 тыс.
Building HTTP Server in NodeJS
17:56
Просмотров 118 тыс.
Getting Started with Express and NodeJS
11:28
Просмотров 73 тыс.
Making Minimalist Web Server in C on Linux
10:23
Просмотров 242 тыс.
10 JavaScript Interview Questions You HAVE TO KNOW
13:41