CommonJs Vs EcmaScript Modules | Sigma Web Development Course - Tutorial #86

Поделиться
HTML-код
  • Опубликовано: 11 янв 2025

Комментарии • 406

  • @CodeWithHarry
    @CodeWithHarry  Год назад +149

    Happy new year once again everyone!
    Lets get back to work and kickstart 2024 with a bang. May you acheive everything you set your mind to, and may this yeer bring you abundant success, growth, and happyness.

    • @OfficialFrager
      @OfficialFrager Год назад +1

      Happy New Year to you also.

    • @Shorya-c4v
      @Shorya-c4v Год назад

      harry bhai plz ek full python course ki teaching bana do plz i request
      btw happy new year

    • @16_sokhal_4
      @16_sokhal_4 Год назад

      Also I am wishing Happy New Year to You Sir and wishing you the great success ahead in your life sir..
      Sir you are my ideal person and best teacher for me.

    • @Rohit_Rai901
      @Rohit_Rai901 Год назад +3

      Welcome back, Harry, sir! 💪
      Data Science course comes after Sigma Web Development...
      No one make a Data Science course on RUclips...
      Finish your Sigma Web Development course...

    • @Probrozoon-z
      @Probrozoon-z Год назад +3

      Data Science course after Sigma💪
      No one make Data Science on RUclips😡😡
      finish your this course in January🏆

  • @areebnadir5778
    @areebnadir5778 Год назад +28

    00:02 Two ways to create JS modules: single script t6 module and common JS module
    02:04 Using createServer method and setting content type in Node.js HTTP module
    04:09 NVM is useful for managing multiple versions of Node.js
    06:00 ES6 modules provide asynchronous module loading and modern syntax
    08:03 Understanding import and export syntax in CommonJS and EcmaScript Modules
    09:57 Default export allows importing with any name
    11:44 Comparison between CommonJS and EcmaScript Modules
    14:30 Understanding module exports and require in ES6 modules and CommonJS
    16:23 CommonJS and ES6 module differences

  • @mubashirkhokhar4268
    @mubashirkhokhar4268 Год назад +84

    harry bhai kindly move your face to upward position buz terminal is not fully visible

  • @adilahmed7452
    @adilahmed7452 26 дней назад +3

    15:07 In type: 'commonjs'.
    Node js wraps our code automatically in a function which enables us to use require, exports, __filename, __dirname etc. so we can use them without the hassle to initialise them every time

  • @rohitstudyclube7270
    @rohitstudyclube7270 10 месяцев назад +4

    For harry Bhai
    Na chahat hai kisi se Milne Ki
    Na tamnna hi kisi ko pane Ki
    Bss ese bande Ki talash hai
    Jiski aukaat ho harry Bhai jaisa course name ki...😊

  • @vaibhavyewale9140
    @vaibhavyewale9140 Год назад +49

    harry bhai whenever you are writing code on terminal please change your face position to left side...as some code we cant able to see.... thank you....@CodeWithHarry

  • @EngineerAnsh
    @EngineerAnsh 6 месяцев назад +2

    00:02 Two ways to create JS modules: single script t6 module and common JS module
    02:04 Using createServer method and setting content type in Node.js HTTP module
    04:09 NVM is useful for managing multiple versions of Node.js
    06:00 ES6 modules provide asynchronous module loading and modern syntax
    08:03 Understanding import and export syntax in CommonJS and EcmaScript Modules
    09:57 Default export allows importing with any name
    11:44 Comparison between CommonJS and EcmaScript Modules
    14:30 Understanding module exports and require in ES6 modules and CommonJS
    16:23 CommonJS and ES6 module differences
    Crafted by Merlin AI.

  • @pratikjayswal9259
    @pratikjayswal9259 6 месяцев назад +6

    Very helpful course till now.
    We want this course in your web site with all available notes and materials.
    Thankyou😊.

  • @OfficialFrager
    @OfficialFrager Год назад +14

    Sigma Batch Op
    Thank you Harry Bhai❤.

  • @CodingBattleGround
    @CodingBattleGround Год назад +26

    #sigmbatch harry bhai yr kuch pata nahi chal raha ye backend me kya ho raha hai, kya chal raha hai. nahi hamare pass notes hai padhne ke liye or nahi mai khud bana pa raha hu video dekh ke, kyu ki sab kuch ekdam alag hai, kuch samajh nahi aa raha.
    please please try to understand my problem.

  • @M_Zubair5017
    @M_Zubair5017 9 месяцев назад +2

    NVM Node Version Manager is super.

  • @Its__AnkitSahu
    @Its__AnkitSahu Год назад +4

    Sigma Batch Super duper OP..
    Want a Heart from You.....

  • @abdullahmehmood4945
    @abdullahmehmood4945 Год назад +2

    100% hard Word Bhai Thanks For ALL VIDEOS

  • @sumitchaudhari1481
    @sumitchaudhari1481 Год назад +15

    Hello Harry Bhaiya!! You have made a full Java tutorial but now we also want "data structures & algorithms" in "java" can you please make a Java DSA playlist?? It's a humble request from your students who learned a lot from you & want much more!!

    • @yashodipwani1445
      @yashodipwani1445 Год назад +4

      Yes sir please java and dsa

    • @DhruvTiwari-c4f
      @DhruvTiwari-c4f 4 месяца назад

      already dusre channel pe bdiya playlist hai bhai, aur rhi baat bhaiya ki toh unhone to bana rkhi hai playlist dsa pe lekin kya pata complete hai ki nhi

    • @ShaikYunis07
      @ShaikYunis07 4 месяца назад

      ​@@DhruvTiwari-c4fkonse channel?

  • @Soulcode-k
    @Soulcode-k 5 дней назад

    I came from 136 and I have an advice that remember what bro is teaching here it help you in the future

  • @tejasnasre
    @tejasnasre Год назад +3

    Harry Bhai Jindabad ❤

  • @minecatter94
    @minecatter94 Месяц назад

    I stopped learning for long time but now i start again with consistency🔥❤

  • @JetPen
    @JetPen 6 месяцев назад +4

    installation wagera mein thoda problem aaya lekin solve hoagaya and thank you bhai for crisp and useful explanation.

    • @theamusingguy9517
      @theamusingguy9517 5 месяцев назад

      Bro tumhara nodemon hua install

    • @khushalpatel1805
      @khushalpatel1805 4 месяца назад +1

      @@theamusingguy9517 bhai mene nodemon install kiya but use nahi kar para hu error aa raha hai please reply

  • @Android-17
    @Android-17 Год назад +5

    CommonJS vs Module export 🔥
    #SigmaBatchOP

  • @adilahmed7452
    @adilahmed7452 27 дней назад

    04:22 Node version manager. We can use the specific version as per our needs

  • @indeedtalk
    @indeedtalk Год назад +1

    Energetic SIGMA BATCH OP❤

  • @Nepali_Coder
    @Nepali_Coder Год назад +4

    Happy new year sir and sigma batch op❤❤❤

  • @nigam_sharma
    @nigam_sharma Год назад +1

    Just here to like Harry bhai content baaki aajkl pd toh mai Hitesh Sir se rha

  • @saiayushmohapatra9498
    @saiayushmohapatra9498 14 дней назад

    1:53 part pai jo server ka link hai usko click karne pai mera My PC khulb raha hai hello world nahi araha please help

  • @ManasPandey22
    @ManasPandey22 Год назад +3

    bhaiya please react bhi krwa do thoda bahut hi for front end k liye jaisa aap backend k liye node js krwa rahe ho sigma batch op aur harry bhai thank you love you 3000

  • @Faheemservices
    @Faheemservices Месяц назад +1

    npm i express jsonwebtoken dotenv (command to install express json webtoken at time(1:17))

  • @muzamilabbas312
    @muzamilabbas312 Год назад +2

    Sigma batch Harry Bhai ❤🎉❤

  • @codewithsehran
    @codewithsehran 5 месяцев назад

    9:10 ab pata cala react main curly brucket import or direct import kiw hota hai coz wo default export wala or curly main koi export nehi hata hai

  • @T.Akshay_Pratap_Singh
    @T.Akshay_Pratap_Singh 4 месяца назад +1

    @CodeWithHarry
    My train is very late unfortunately. But I will for sure take it to its final destination

  • @AdityaKumar-pf7mn
    @AdityaKumar-pf7mn 9 месяцев назад +2

    bhaiya 2:46 me server restart kaise kre mere me ni ho rha h

    • @Shiraz_Mazhar
      @Shiraz_Mazhar 7 месяцев назад

      already wale ko close kardo and then run karo waise 2 months bad kar rah reply hopefully hogya hoga masla hal apka

    • @mr.kaushik8518
      @mr.kaushik8518 4 месяца назад +1

      Same problem

    • @priyanshusingh8213
      @priyanshusingh8213 4 месяца назад

      Kaise kiya restart​@@mr.kaushik8518

  • @gauravrajmefgi1463
    @gauravrajmefgi1463 5 месяцев назад

    big fan of yours bhahiyaa ji
    keep posting this type of videos big heart ❤❤

  • @Stark7_World
    @Stark7_World Год назад +1

    Happy New Year Harry Bhai 🎉🎉

  • @tariniprasadmohapatra4434
    @tariniprasadmohapatra4434 Год назад +3

    Bhai react ya fir next js nahni hoga kya front end ke lie

  • @cyber.industry
    @cyber.industry 10 месяцев назад +3

    Ham garibo ki dua lgegi re baba❤❤

  • @moazzamalisoomro6714
    @moazzamalisoomro6714 Год назад +1

    Harry Bhai I am your biggest fan from pakistan, Alots of Love from pakistan for u ❤ Harry bhai your all videos are awesome , Excellent content everythink is up-to-date And your this sigma web development course is mind blowing 😍💫❤⭐ Harry bhai can u plz make a video on This how to make your linkedin profile attractive to recruiters And also github account if you are considering it i am very very Thank full to u Harry Bhai ❤

  • @niyamatalimallick7158
    @niyamatalimallick7158 Год назад +1

    Happy new year sir ❤️

  • @malharkhaladkar4568
    @malharkhaladkar4568 Год назад

    Happy new year🎉❤❤🎉 Harry bhai
    Sigma WD batch Op

  • @Own_joker_editz
    @Own_joker_editz 2 месяца назад +2

    Brother apna face side par kar dia karey ab jo ap ka video key shuro par kia wo hum kese karey ?

  • @tarungupta8860
    @tarungupta8860 Год назад +2

    Natural language processing (NLP)

  • @hiphop861
    @hiphop861 Год назад +1

    #SigmaBatchOp #HarryBhai
    Thank you for making this lecture

  • @Engineering_Unlocked
    @Engineering_Unlocked Месяц назад

    thank you so much bhaiya :)
    completed on 1/12/24

  • @omkarprajapati4724
    @omkarprajapati4724 Год назад +1

    Job hi nai lag rahi 😢😢 maine private colleges se bca kiya lakin kuch nai ata ache se bhot confusion he kya karu bhai? Jo knowledge he uss hisaab se koi le hi nai raha he interview questions hi nai aa rahe please help sir request. Help kardo bhai bhot uljan he

  • @adeelnadeem5913
    @adeelnadeem5913 Год назад

    sigma batch op
    kindly like it
    love from pakistan

  • @zeeshanalianjam9983
    @zeeshanalianjam9983 Год назад +2

    sir npm me dotnv install ni hu raha ha

  • @saththanikaran7542
    @saththanikaran7542 Год назад

    #singmabachop
    Harry is Hacker 😅😅😅
    Love you guruji 😍💝💝😍😍😍😍

  • @safayetthe1savage608
    @safayetthe1savage608 Год назад

    Shakib halay taratari video deho ami gelamga😉

  • @devgusain820
    @devgusain820 Год назад +1

    Sir, please do express.js with node in the future episodes.❤

  • @harshiv1124
    @harshiv1124 Год назад +8

    harry bhai ye jo last me train me sigma web development likha aa raha he wo editing he ya fir real he ??

  • @ghostprime999
    @ghostprime999 7 месяцев назад +1

    Wonderful bro🔥🔥🔥😃😃

  • @ayushmaanpatra9986
    @ayushmaanpatra9986 Год назад +1

    Sir can you please make a course on material Ui after this course completion.
    Please sir

  • @krishnaverma4673
    @krishnaverma4673 8 месяцев назад +3

    sir nodemon main.js likhne par
    nodemon : File C:\Users\ACER\AppData\Roaming
    pm
    odemon.ps1 cannot be loaded because running scripts is disabled on this
    system.
    error ara hai how to fix?

    • @akarshkushwaha2469
      @akarshkushwaha2469 7 месяцев назад +1

      mera bhi yhi aa rha h
      kaise thk hoga

    • @rkb--career
      @rkb--career 7 месяцев назад +4

      Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope CurrentUser
      run the above line in the same terminal

    • @prithop9338
      @prithop9338 6 месяцев назад

      copy the error and paste it on google
      open the first website and it will tell you some commands to write in terminal
      execute that and you are good yo ho
      same thing happened with me

    • @chainsaw-LisanAlGaib
      @chainsaw-LisanAlGaib 6 месяцев назад

      @@rkb--career thk u bro

    • @DhruvaS-g3y
      @DhruvaS-g3y 3 месяца назад

      @@rkb--career thanks

  • @divyarana1906
    @divyarana1906 8 месяцев назад +1

    bhaiya nodemon me error show ho rha hai how to fix it??

  • @huzaifaamjad9802
    @huzaifaamjad9802 11 месяцев назад

    Harry brother amazing. ✌

  • @Alone_ff01
    @Alone_ff01 Месяц назад +1

    Harry sir can you please make a new django course also please.

  • @Trendi_Vibes
    @Trendi_Vibes Месяц назад

    Sigma batch OP 🎉

  • @SandeepChaudhari-pf1hw
    @SandeepChaudhari-pf1hw 8 месяцев назад

    Keep continue bro ❤

  • @hussaindeveloper622
    @hussaindeveloper622 8 месяцев назад

    harry bhai ek ful video bana do blogging website kese banate hein including admin dashboard

  • @code.priyam
    @code.priyam Год назад +4

    nodemon mere pc me kyu nhi chal raha hai??

    • @MasterCode-ny1tx
      @MasterCode-ny1tx 10 месяцев назад

      yes , mere pc me bhi nahi chal raha kyuki hamara pc other scripts ko run hone nahi deta as security reasons. iskeliye ap windows command palete run as administration karke kholke unretricted se chala sakte ho par vo security warning throwkarega. So be careful

    • @ranjannaik5873
      @ranjannaik5873 10 месяцев назад +3

      If you're on windows, search >>powershell developer setting >> for developers >> check the box beside change execution policy to allow local powershell scripts to run without signing

    • @Aditya_Jain_108
      @Aditya_Jain_108 4 месяца назад

      @@ranjannaik5873 thnx dude...worked for me

    • @muditrastogi5755
      @muditrastogi5755 4 месяца назад

      Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope CurrentUser
      copy paste above line in the terminal and it will work.

  • @arshadhussain2859
    @arshadhussain2859 7 месяцев назад

    is video me mota moti import export ke baare me bataya hai ......old and new style

  • @ankushgautam4274
    @ankushgautam4274 5 месяцев назад

    Sigma Batch OP!!!

  • @deepsinha1095
    @deepsinha1095 9 месяцев назад +1

    can anybody tell me where can i find the backend hand written notes

  • @Akashverma-bb7ly
    @Akashverma-bb7ly Год назад +3

    Ye course kewal unko hi ache se smjh aa rha hai jinhone phle se JS ki huvi hai, main beginner hu or muje kuch amjh nhii aa rha 🤧

    • @computerscout331
      @computerscout331 10 месяцев назад

      Are bhai video first se watch Karo tab kamal dekho🎉🎉🎉🎉

    • @Akashverma-bb7ly
      @Akashverma-bb7ly 10 месяцев назад

      @@computerscout331 first se hi watch krta aa rha tha Bhai or pura HTML CSS smjh me aaya bhi but JS me sb chije uppr se Jane lagi 😭

    • @computerscout331
      @computerscout331 10 месяцев назад

      @@Akashverma-bb7ly 😀 kaha se upper ja Raha node js se

    • @computerscout331
      @computerscout331 10 месяцев назад

      @@Akashverma-bb7ly javascript aaram se karo slowly slowly har ek point samajh samajh ke aa jayega

    • @uniquechrist8551
      @uniquechrist8551 10 месяцев назад

      Javascript kar bhi loge to bhi jldi samjh nahi aayega

  • @Anurag_Badwahe
    @Anurag_Badwahe Год назад +4

    Please start react as fast as possiible

  • @nobody-pw7xi
    @nobody-pw7xi 8 месяцев назад

    Love you Harry bhai❤❤❤

  • @Newone-io6og
    @Newone-io6og 5 месяцев назад

    bhai konsa jyada use hota hai ab modern time me??

  • @jbafila929
    @jbafila929 10 месяцев назад

    @CodeWithHarry bhai npm modules install nhi hore hai Sill idealThree buildDeps Ara hai terminal mai please help me bro

  • @skannu3155
    @skannu3155 Год назад

    Happy New year

  • @Rohit_Rai901
    @Rohit_Rai901 Год назад +1

    Welcome back, Harry, sir! 💪
    Data Science course comes after Sigma Web Development...
    No one make a Data Science course on RUclips...
    Finish your Sigma Web Development course...

    • @Probrozoon-z
      @Probrozoon-z Год назад +1

      Yes, No one make Data Science course on youtube😳😪😪

  • @nmn_chinu
    @nmn_chinu Год назад

    Sigma Batch ❤

  • @nayeemalhasanalif181
    @nayeemalhasanalif181 Год назад +2

    Can you please 🥺 make a video for mobile user . I don't have any computer to run node js.

  • @SnehaChauhan-pt8fk
    @SnehaChauhan-pt8fk 11 месяцев назад +1

    Which extension use in vs code run nodejs file

  • @raman8021
    @raman8021 Год назад

    You r rocking bro❤

  • @raimath420
    @raimath420 Год назад

    SIGMA BATCH OOPPPPPPP❤❤❤

  • @yogendrakushwaha4032
    @yogendrakushwaha4032 Год назад

    Sir kaun sa code ka kya kam hai sabke bare me basic se bataye please sir

  • @mananpatidar12
    @mananpatidar12 9 месяцев назад +3

    kuch samaj mai nahi aa raha, after js. Aur sab ko samaj mai aa raha hai??

  • @DineshKumar-i5j7y
    @DineshKumar-i5j7y 10 месяцев назад

    sigma batch op❤‍🔥❤‍🔥❤‍🔥

  • @Stark7_World
    @Stark7_World Год назад +1

    Sigma batch op ❤❤❤

  • @nishankhivavlogs6499
    @nishankhivavlogs6499 4 месяца назад

    sir aap ki video bahut helpful hai but apka face terminal ko chhupa rha hai jisse dikkt ho rhi hai

  • @sajinscartoonvine
    @sajinscartoonvine Год назад

    Bhai mera ak sawal hai ki Google colab notebooks kaise banate hai.........

  • @knowledgesharewithAman
    @knowledgesharewithAman Год назад

    Hum to laaga ki aap na aaygi video 😮

  • @saptarshichakrabortty4929
    @saptarshichakrabortty4929 10 месяцев назад +1

    Nodemon not working due to 'Running script is disabled in this system'. ChatGPT could not help so anyone please help
    Thanks

    • @ranjannaik5873
      @ranjannaik5873 10 месяцев назад

      If you're on windows, search >>powershell developer setting >> for developers >> check the box beside change execution policy to allow local powershell scripts to run without signing

    • @starkgaming8074
      @starkgaming8074 8 месяцев назад

      @@ranjannaik5873 Thanks brother

    • @rkb--career
      @rkb--career 7 месяцев назад +2

      Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope CurrentUser
      run this line in same terminal, then nodemon work

    • @hussain.ahmd7
      @hussain.ahmd7 3 месяца назад

      @@rkb--career bro can you please explain what this line of code do? I was trying hard for nodemon main.js to work but copypasting this thing into the terminal helped. PLEASE TELL BROTHER I WOULD BE GRATEFUL

  • @subhanjalpant8824
    @subhanjalpant8824 Месяц назад

    Watched two videos and couldn't understand much
    it's tougher than i thought it to be

  • @rreviews9386
    @rreviews9386 8 месяцев назад

    How your brain does work and pick what exact the problem is happening with the code?

  • @malikwahab9208
    @malikwahab9208 11 месяцев назад

    Same steps taken before 3:21 but nodemon main.js is not working
    How to Solve this issue anyone kindly guide love you from Pakistan
    #HarryBahi

    • @TBGwarriors
      @TBGwarriors 11 месяцев назад

      ye wala problem bata raha kya {node : The term 'node' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that
      the path is correct and try again}.

    • @AmithBV-c1s
      @AmithBV-c1s 10 месяцев назад

      Set the terminal to bash….

    • @AmithBV-c1s
      @AmithBV-c1s 10 месяцев назад

      And try the command “nodemon ”

    • @ranjannaik5873
      @ranjannaik5873 10 месяцев назад

      If you're on windows, search >>powershell developer setting >> for developers >> check the box beside change execution policy to allow local powershell scripts to run without signing

  • @MahadKhan873
    @MahadKhan873 9 месяцев назад

    on my laptop import , export are not working even i changed the type to modelue what should i dooo

  • @manishabhatt124
    @manishabhatt124 Год назад

    Kya hm node.js की jagh php use kr skte h #harry #signabatchop

  • @muhammad_bilalkhan
    @muhammad_bilalkhan Год назад +1

    You are great 👍

  • @praveshsharma3073
    @praveshsharma3073 Год назад

    Hello Harry bhaiya
    Nodemon install karte time error aa rha

  • @gamingbuddy3112
    @gamingbuddy3112 6 месяцев назад

    Sigma batch opp😊😊😊

  • @shakeel_developer-f7x
    @shakeel_developer-f7x Год назад

    Love You Harry Bhai

  • @parthpitroda35
    @parthpitroda35 Год назад

    When I typed the command to run the server no doubt the server was running but i was not able to write the command below the line "server is running" as i wanted to install the nodemon module but the terminal wasn't allowing me please can anyone help me??

    • @SwastikBose-n4o
      @SwastikBose-n4o Год назад +2

      you need to stop the server and then install nodemon , you can stop the server by ctrl+c

    • @govindr3004
      @govindr3004 10 месяцев назад

      @@SwastikBose-n4o while i install nodemon its showing 3 packages are looking for funding, ? what to do

  • @mostofataz953
    @mostofataz953 Год назад

    Sigma Batch Op
    when you start react ?

  • @Vikas-qn8dp
    @Vikas-qn8dp Год назад +1

    Long wait ends

  • @iksingh8189
    @iksingh8189 8 месяцев назад

    what is your theme for visual studio code

  • @Abdullah-ml2hs
    @Abdullah-ml2hs 6 месяцев назад

    Mere laptop me node js work ni kar raha 😢

  • @priyanshudhokne868
    @priyanshudhokne868 2 месяца назад +1

    SIGMA BATCH OP

  • @abhishekchauhan8581
    @abhishekchauhan8581 2 месяца назад

    bhai server restart kase hota hai explain

  • @Coding_contents
    @Coding_contents Год назад

    Module kya hai
    Aur slugs kuch samajh hi nahi aa rha hai code

  • @ElhaamAli-di5su
    @ElhaamAli-di5su 10 месяцев назад +1

    Kuch samaj nahi araha tha or quit karnay ka sooch raha tha par 1 din rest kiya ab sab set hogya.

  • @coding_era01
    @coding_era01 Год назад

    Hello Bhaiya node err 492 ko kese thik kare