Differences Between Pass By Reference VS Pass By Value with Practical Example In JavaScript

Поділитися
Вставка
  • Опубліковано 13 жов 2021
  • Welcome, Differences Between Pass By Reference VS Pass By Value with Practical Example In JavaScript
    The difference between pass-by-reference and pass-by-value is, pass-by-value creates a new space in memory and makes a copy of a value, whereas pass-by-reference does not. Instead of making a copy, pass-by-reference does exactly what it sounds like; a value stored in memory gets referenced.
    👉 JavaScript Interview Series in Hindi in 2021: • JavaScript Interview S...
    😍 Check my Instagram to Connect with me: / thapatechnical
    ************ Must Watch Videos For Web Development ************
    ➡️ ReactJS Tutorial in Hindi 2020 Playlist Link: • React JS Tutorial in H...
    ➡️ React JS Project Netflix App Part #1 in Hindi in 2020: • #22: Props in React Js...
    ➡️ Install VS Code for ReactJS LINK: www.thapatechnical.com/2020/0...
    😍😍 Check Programming Videos in One Hour👇
    ➡️ Complete Reactjs in One video here • ReactJS For Beginners ...
    ➡️ HTML in One Video: • Learn HTML in One Vide...
    ➡️ CSS in One video: • Learn Complete CSS In ...
    ➡️ CSS FlexBox in 30 Minutes: • CSS FlexBox in 30 Minu...
    ➡️ JavaScript in One video: • JavaScript in One Vide...
    ➡️ ECMAScript 6 in One Video: • ES5 & ES6 | ECMAScript...
    ➡️ HTML5 in one video: • HTML5 Tutorial in One ...
    ➡️ CSS3 in one video: • Learn Complete CSS3 In...
    ➡️ Bootstrap4 in One video: • Bootstrap 4 in One Vid...
    ➡️ Jquery in One video: • jQuery in One Video in...
    ➡️ JSON in one video: • JSON in One Video in H...
    ➡️ ReactJS in one video: • ReactJS For Beginners ...
    ➡️ PHP in One Video: • PHP TUTORIAL IN ONE VI...
    ➡️ NodeJS in one video: / ipnwakoibt
    ➡️ MySQL in one video: • Complete SQL & MySQL i...
    ********** CLICK HERE TO WATCH ************
    ➡️ Fetch API in JavaScript: • Fetch API in JavaScrip...
    ➡️ AJAX tutorial for beginners in Hindi: • AJAX tutorial for begi...
    ➡️ Template literals (Template strings) in ES6 in JavaScript in Hindi: • ES6 Tutorial #3: Templ...
    ➡️ Async Await in JavaScript in Hindi: • Async Await in JavaScr...
    ➡️ Promises in JavaScript in Hindi: • Master The Promises in...
    ➡️ Callback Hell in JavaScript: • Callback Hell in JavaS...
    ➡️ Advanced JavaScript in Hindi Playlist: • Advanced JavaScript Tu...
    ➡️ ECMAScript Tutorial in Hindi 2020: • Modern JavaScript ES6 ...
    ➡️ ES5 & ES6 | ECMAScript 6 in One Video in Hindi: • ES5 & ES6 | ECMAScript...
    ➡️ JavaScript Game Development Series in 2020: • JavaScript Game Develo...
    ➡️ Source Code Link: www.thapatechnical.com/2019/1...
    ➡️ Top 5 Programming Languages in 2020: • Top 5 Programming Lang...
    ➡️ Ludo Game JavaScript Link: • JavaScript Game in Hin...
    ➡️Plz show some love to My Siter UA-cam Channel and Plz Subscribe Link: / @mayabeautyvlogs878
    **************** MUST WATCH VIDEOS *****************
    ➡️ How to become a Full Stack Developer 2020: • How to become a Full S...
    ➡️ How To Become a Web Developer 2020: • How To Become a Web De...
    ➡️ How JavaScript Works: • How JavaScript Works i...
    ➡️ Follow me on Instagram: / vinodthapa55
    Make Website Responsive Using Media Queries in One Video in Hindi | Web Design Tutorial in Hindi
    ➡️ Link: • Make Website Responsiv...
    Guys, Please support my channel by SUBSCRIBE to my channel and share my videos in your Social Network TimeLines.
    Don't Forget to Follow me on all Social Network,
    Website Link: www.thapatechnical.com
    Instagram Link: / vinodthapa55
    Facebook Link: / vinodthapa55
    Twitter Link: / vb55thapa
    Facebook ThapaTechnical Page Link: vinodbahadur...

КОМЕНТАРІ • 65

  • @ThapaTechnical
    @ThapaTechnical  2 роки тому +7

    Hope You all are loving the Interview series👉 JavaScript Interview Series in Hindi in 2021: ua-cam.com/play/PLwGdqUZWnOp0VVqPVPA3ccqtjpLLPwtN8.html
    😍 Check my Instagram to Connect with me: instagram.com/thapatechnical

    • @hightohighest1052
      @hightohighest1052 2 роки тому

      how to solve this. please help sir
      setTimeout(() => {
      console.log("You guys are awesome")
      }, 2000)
      console.log("I am smart")
      //output is: "I am smart" and after 2 second "You guys are awesome"
      but the question is what should modify in this code that output will be like:
      //output : first display "You guys are awesome" and then "I am smart"

    • @AbdurRahman-qc3ip
      @AbdurRahman-qc3ip 2 роки тому

      @@hightohighest1052 first log then apply timeout function.

  • @shaktii2181
    @shaktii2181 25 днів тому

    Bahut acche se samjaya aapne....sahi m eske liye kahi aur jaane ki jarurat nhi h....

  • @Abhi-ow6xe
    @Abhi-ow6xe 2 роки тому +5

    Awesome very clear explanation.
    Need to careful working with non primitive data types

  • @hassamulhaq7762
    @hassamulhaq7762 2 роки тому

    Amazing. thank you for this knowledge tutorial.

  • @abantikakarmakar1988
    @abantikakarmakar1988 2 роки тому

    Really helpful!!👍

  • @nightcode.
    @nightcode. 2 роки тому

    Thanks you so much sir.

  • @VandanaSharma-ec6zl
    @VandanaSharma-ec6zl Рік тому

    mind blowing explanation

  • @sarfarazsheikh7378
    @sarfarazsheikh7378 2 роки тому

    Thank you very much brother

  • @asadhussain6308
    @asadhussain6308 Рік тому

    great understanding really

  • @raviprakashkumar9322
    @raviprakashkumar9322 2 роки тому

    bhai apka jab bhi video dekht a hu bohot maza aata and this boomm! gyuss😊😂🤣

  • @rc_yt
    @rc_yt Рік тому +1

    Awesome ❤🎉

  • @rahulrajmehra6501
    @rahulrajmehra6501 Рік тому

    what a explanation!👍

  • @mohitdwasekar
    @mohitdwasekar Рік тому

    Thank You Sir.

  • @Starwork09
    @Starwork09 9 місяців тому

    Great Explanation

  • @jankisahu9474
    @jankisahu9474 Рік тому

    Thankyou sir ❤️

  • @kuldeeptrivedi3293
    @kuldeeptrivedi3293 2 роки тому +2

    I have checked on UA-cam. no tutorial of JavaScript with DSA(Data structure and algorithms) on UA-cam in Hindi. can you make this series.

  • @tanweerzaya2363
    @tanweerzaya2363 Рік тому +1

    How to burn when you type on vs code.. is thus any extension could please tell me about that?

  • @riazrabbani8052
    @riazrabbani8052 2 роки тому +1

    Awesome video

  • @SatyendraSingh-mu2ux
    @SatyendraSingh-mu2ux 9 місяців тому +1

    obj1 = null pass krne k baad kya output aayega obj2

  • @RafiqueAhmed-kd2lf
    @RafiqueAhmed-kd2lf Місяць тому

    Wow great, hope you will create more helpfull tutorial for beggners.

  • @riyazahmedpathan3850
    @riyazahmedpathan3850 9 місяців тому +1

    Booom Guys Awesome
    🔥🔥🔥🔥🔥

  • @naimeimran3247
    @naimeimran3247 Рік тому

    Thanks

  • @anugyashrivastava6568
    @anugyashrivastava6568 Рік тому

    Very helpful

  • @premsingh6967
    @premsingh6967 2 роки тому

    Great job

  • @rip1502
    @rip1502 2 роки тому

    Sir , Plz make a video on figma basic to advance 🙏🙏

  • @Sachin_Ravi
    @Sachin_Ravi 2 роки тому

    Following u I selected cognizant

  • @mariarashid3407
    @mariarashid3407 Рік тому

    fascinating sir thanks sir

  • @vishalkumar1313
    @vishalkumar1313 Рік тому

    bhut badhiya

  • @shahindomar3958
    @shahindomar3958 2 роки тому

    Thanks Dada

  • @UmarKhan-yr6pb
    @UmarKhan-yr6pb Рік тому

    nice way ☺️

  • @azizulhakimashik1154
    @azizulhakimashik1154 2 роки тому +1

    Awesome

  • @SlayerisHere
    @SlayerisHere 11 місяців тому

    how can you say that both are independent what if we change the value of a value of b is also get change then how it is possible ?

  • @syedammarali3354
    @syedammarali3354 Рік тому

    Good explanation

  • @user-hn2fu3no7b
    @user-hn2fu3no7b 10 місяців тому

    Sir ji aap konse system use kar rahe ho

  • @devshahin
    @devshahin 2 роки тому

    would you tell me how can i make my cursor like you?
    Please please

  • @aatif14321
    @aatif14321 2 роки тому

    Please start deno series.

  • @naziyabaig8292
    @naziyabaig8292 9 місяців тому

    Awsome

  • @iahmedsh_
    @iahmedsh_ 11 місяців тому

    good

  • @anujsharma8982
    @anujsharma8982 2 роки тому

    Please make a video on instagram clone using react

  • @dopeshots9687
    @dopeshots9687 2 роки тому

    Bro then what could we do in case of pass by reference to keep both non primitive objects different like in case of pass by value

    • @Abhi-ow6xe
      @Abhi-ow6xe 2 роки тому

      Declare seperately

    • @dopeshots9687
      @dopeshots9687 2 роки тому

      @@Abhi-ow6xe could you elaborate

    • @Abhi-ow6xe
      @Abhi-ow6xe 2 роки тому

      @@dopeshots9687 there could be other ways but I am saying
      a = obj, b = obj

    • @pawangupta6161
      @pawangupta6161 10 місяців тому

      @dopeshots9687 you can use spread operator for that. Like this:
      obj1={
      name: "abc",
      age: 23
      }
      obj2 = [...obj1] ;
      obj2.age = 35;
      console.log(obj2);
      So now the age property will be changed only for obj2.

  • @blockchaindaily2348
    @blockchaindaily2348 2 роки тому

    If we use const instead of let????

  • @9876rabi123456789
    @9876rabi123456789 2 роки тому

    Sir, could you please tell me what is the name of the theme that you are using ?

  • @androBughunter
    @androBughunter 2 роки тому

    🔥🔥

  • @meditationmusic6214
    @meditationmusic6214 2 роки тому

    Thapa bhai carousel Bootstrap with react js per video banao. Urgent hai

    • @Starwork09
      @Starwork09 9 місяців тому

      tere Baap ka Raaz ha

  • @puneet__lord
    @puneet__lord 8 місяців тому

    ❤❤

  • @PROTECHRAHUL
    @PROTECHRAHUL 2 роки тому +1

    Bhaiya mere css code me koi kuch properties kaam nii kar rhi h but important lagane pr kar rhi h kya reason hai please btado.
    Waiting

    • @nightfury1250
      @nightfury1250 2 роки тому +1

      Bhi wo important lagay begair is lia kam ni kr raii q ky wo wali properties override (reassigned) ho raii ha khy na khy tmhary css code ma ya agr koi library use ke ha tu waha override ho raii ha is lia jb important lagaty ho tu jis property ko important lagaty ho wo walii baki tamam properties ko override kr datii ha is lia wo wali property apply ho jatii ha.. hope you will understand 😄

    • @PROTECHRAHUL
      @PROTECHRAHUL 2 роки тому +1

      @@nightfury1250 are bhai you saved my day.
      Thanks alot brother...👌
      Ek .doubt or hai kya media querie max-width 440px desktop view ko effect karega kyoki mere case me ek media querry desktop view me ek section ki phone k jaisa dikha rha hai.
      Please btao
      Or acha media queries kaise likhte h woh bhi btanaa Bhaiyaa.

    • @nightfury1250
      @nightfury1250 2 роки тому

      Bhi saii sa tmhary question ke smj ni aii....
      Or bhi idr comments tu ma media query smja tu ni saqta UA-cam pr bohat sary videos ha wo dekh lo smj a jy ga

    • @PROTECHRAHUL
      @PROTECHRAHUL 2 роки тому +1

      @@nightfury1250 bhai meri media queries jo phone size pe trigger honi chahiye woh desktop view pe kyo chal rhi h.

    • @nightfury1250
      @nightfury1250 2 роки тому

      Bhi abi paka saii sa tu ni bta saqta lakin tm na max-width kr jaga min-width try kro.. bakii saii sa tu code dekh ky he pta chly ga na

  • @Kriti-lx2vu
    @Kriti-lx2vu 2 роки тому

    Awesome sir 😎

  • @shobhitdhami4559
    @shobhitdhami4559 2 роки тому

    Sir plz plz make video by Redux call api with base url and middleware config

  • @Karan_Arsud
    @Karan_Arsud Рік тому

    500k se jyada subscribe hogye h ab nhi karunga subscribe

  • @DailyTricks0
    @DailyTricks0 5 місяців тому

    Awesome