المدة الزمنية 11:27

29 Why it is called THIS

بواسطة Telusko
54 853 مشاهدة
0
1.2 K
تم نشره في 2021/06/24
عرض المزيد

تعليقات - 75
  • @
    @arashautomationlab9088منذ 2 سنوات Thank you! Telusko!
    As far as i understood,
    1- We use THIS with the current object.
    2- THIS itself means an OBJECT
    in this lecture comparison of two different object properties with help of THIS keyword was just one example in fact we can play with THIS any time we need to deal with multiple different objects when needed.
    the bottom is my code in case if anyone needed for this lecture.
    let laptop1 =
    {
    cpu: 'i11',
    ram: 16,
    brand: 'Apple',
    text: 'Laptop Information',
    tags: true,
    compare: function (other) {
    if (this.cpu > other.cpu)
    console.log(this)
    else
    console.log(other)
    },
    greet: function () {
    console.log(this.cpu)
    }
    }
    laptop1.greet()
    let laptop2 =
    {
    cpu: 'i20',
    ram: 16,
    brand: 'HP',
    text: 'Laptop Information',
    tags: true,
    greet: function () {
    console.log(this.brand)
    }
    }
    laptop2.greet()
    laptop1.compare(laptop2)
    .
    ...وسعت
    10
  • @
    @rousepistola910منذ 3 سنوات your "THIS" explanation is the best explanation out there. Thank you! 13
  • @
    @murlidharpathakمنذ 3 سنوات Watched without any expectation, i saw the notification and Just clicked. But learnt very good thing on the go. Liked it 10
  • @
    @anurag3886منذ 2 سنوات THIS is the best "THIS " explanation. Thanks for THIS 3
  • @
    @CiscoZeroمنذ 2 سنوات I had hesitance because of your accent, but you explained the best with great examples. You are a genius! Thank you, Telusko.
  • @
    @obisistus472منذ 3 سنوات You are very good!
    And I will be more than happy if you could create an in-depth tutorials (as many as possible) that covers JavaScript with the id="hidden2" class="buttons"> DOM. Everything that has to do with DOM. I finding it very challenging grasping it
    ....وسعت 6
  • @
    @kothaindresh5099قبل 9 أشهر wow wow.just amazing way navin reddy to explain this and methods, objects. thanks a lot.cant get enough of your video content
  • @
    @praveenshahapure5556العام الماضي Hello Sir, I have json file and loading that file into db, for loading i'm using JS. but in that file having Array[] object so want to load array data into the table how wuld i load that ?
  • @
    @saurabhdaswant7833منذ 3 سنوات wow i saw your both : "what is this " and "why it is called this" vedio in one go
    these videos were so easy to understand thank you so much
  • @
    @sagarsonkar6961العام الماضي "It's John Cena" I laughed so hard 1
  • @
    @smrpkrlالعام الماضي Awesome sir! This series is so entertaining!
  • @
    @razashah7881قبل 11 أشهر I am remembering one thing more to see this sketch, taking properties in an object, with a function (which has less or no parameters) is called Encapsulation, The first rule of object-oriented programming.
  • @
    @akshayr6067منذ 2 سنوات How can we compare cpu, as its a string? Thank you. 1
  • @
    @sher.5027منذ 2 سنوات Nice Explanation. Love it. keep this on free. We are seeing ads to support you.
  • @
    @manilavaswani154منذ 3 سنوات Amazing.
    You explained so well I love it. Thank you so much.
    1
  • @
    @elliotbaker3757منذ 3 سنوات Your tutorials are amazing. But this one wasn't the best compared to the others 2
  • @
    @civiladvisor8850منذ 3 سنوات Sir ,i wanna ask that online mca would be good or not from jobs perspective as i have completed ug in bsc (cs) ,refrence great learning platform united with jain university plz ans soon
  • @
    @Lawleetمنذ 3 سنوات Before learning any thing pls follow your passion, good things take time to happen. Happiness is a choice. 4
  • @
    @user-ty1iq4xg7tقبل 4 أشهر is superb and got to know why this keyword is that much effective in JS.
  • @
    @klaasjanssen644منذ 2 سنوات so simple and good explained! thx bro!
  • @
    @b.r.ambedkarformerminister1829منذ 2 سنوات your explanation 1 to 28 awsome 29th video my mind full collapsed
  • @
    @mohamedhamza2801منذ 2 سنوات can you active the subtitles to a better understanding ? 1
  • @
    @shashikanthd4767منذ 3 سنوات Once upon a time ago i tried explaining this to my friend, and this became so complicated, then this video helped me out, i sent this to him 3
  • @
    @ramachandrabolisetti2602منذ 3 سنوات console.log(first+"Hello")
    output is : [object Object]+Hello
    Why the output is getting like this if we tried to print something id="hidden8" class="buttons"> with object
    Output is perfect if we just print the object
    Please make a clear understanding video on this error
    ....وسعت 2
  • @
    @kailashmedavarapu9859منذ 3 سنوات John Cena!!!
    It's there . U can't see it.
    1
  • @
    @sonujhariyaالعام الماضي The strings, i7 & i9 can be compared, wow.
  • @
    @heshamahmad4101العام الماضي How javascript knows that i9 > i5 ?
  • @
    @ganapathypt6410منذ 3 سنوات I think you need to explain what will happen if we have a method as arrow function and using the this keyword in that method 4
  • @
    @mohammedmayoof5416منذ 3 سنوات You are the bist i like the e.g thanks so much
  • @
    @swapniltamrakar4181منذ 2 سنوات if we compare i9 and i11 its giving i9 is greater may be comparing 9>1 and declaring i9 as greater
  • @
    @kpp4958منذ 3 سنوات I want to know about. Net future in 2021. Is it worth it to do. Net courses 1
  • @
    @shivachanda2438منذ 3 سنوات waiting for java script with dom ,angular 2 nd javascript to create web app
  • @
    @aneunjieroine3169منذ 3 سنوات i enjoy your classes but i did not understand anything here
  • @
    @praveenjorrigala5731منذ 2 سنوات Don't get confused in this Video
    it is as easy as 1 - 28 videos
    just remove all the unwanted stuff and start in a fresh page.
  • @
    @lizatheangrycatمنذ 2 سنوات if you are able hear an iphone ringtone at 8.33 , you are a legend.
  • @
    @UHI-yx1etقبل 9 أشهر function fastLaptop(laptop1,laptop2){
    if(laptop1.cpu>laptop2.cpu){
    console.log(laptop1);
    }
    else{
    if(laptop1.cpu===laptop2.cpu){
    if(laptop1.Ram>laptop2.Ram){
    console.log(laptop1);
    if(laptop2.Ram===laptop1.Ram){
    if(laptop1.storage>laptop2.storage){
    console.log(laptop1);
    }
    else{
    console.log(laptop2);
    }
    }
    }
    else{
    console.log(laptop2);
    }
    }
    else{
    console.log(laptop2);
    }
    }
    }
    .
    ...وسعت
  • @
    @ShakibAhmad-jg5nkقبل 3 أشهر Matlab third party hata ne ke liye this keyword use hota hai.
  • @
    @modapps5643العام الماضي I can even simplify it. U might actual name and a nickname. But All of ur family members call u by ur nickname and teachers and all others call u by id="hidden10" class="buttons"> ur actual name.here the nickname is "this". That's it. ....وسعت
  • @
    @shanureddy9001منذ 3 سنوات Who else came here to know abt why javascript
  • @
    @muslumozden7088منذ 3 سنوات If you talk a little bit slower you would give people more time to absorb the information. 2
  • @
    @mohdsahil4087منذ 3 سنوات totally waste sorry but this tutorial is totally a waste .navin bhai apko the new boston ki video dekhni chahiye .kya sekhaaya ismaine tumne