@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.
@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
مقاطع الفيديو ذات الصلة على 29 Why it is called THIS:
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
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
these videos were so easy to understand thank you so much
You explained so well I love it. Thank you so much. 1
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
It's there . U can't see it. 1
it is as easy as 1 - 28 videos
just remove all the unwanted stuff and start in a fresh page.
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);
}
}
} ....وسعت