Explaining very clearly...This concept chaala videos chusa andi... naku artham kaaledhu but mee video chusaka matrame artham indhi Thankyou for the video
1)00:00 explain about different types of this method. 2)01:49 this key word in console.log method based on place where i used this keyword we get values.value of this key word outside of function and object. 3)09:50 create a this key word inside function 4)11:05 this keyword inside method. 5)14:30 this keyword inside event handler. 6)20:15 strict mode
Let and const variables are block-scoped, which means they only exist within the block only... The window object doesn't have access variables which are declared with let and const keywords. Then it shows undefined
code snippet //note in javascript everty thing is object //we used this in different places base on point of location it will give output // console.log(this) // var x="jegini" // this keyword outside a object // console.log(this) // test= { // x:"jegini lokesh" // } // function add(a,b) { // sum=a+b; // } //this act like a global object if we use outside a function. // console.log(x); // console.log(window.x); // console.log(this.x); // console.log(this.test) //this is used inside the function. // function inside( ) { // console.log(this.x) // } // inside() movie={
Explaining very clearly...This concept chaala videos chusa andi... naku artham kaaledhu but mee video chusaka matrame artham indhi Thankyou for the video
It's my pleasure
05:00 create a window object and acess through window object ( window object act like a pareent)
👍
Thanx for ur clear expalnation... really I am getting soo much benfited from this channel... Hope u all success....
Thanks,its my pleasure
nice explanation i am a student of ccbp...you explained better than them..and they skipped some topics..
Thank you ,keep it up
@@csworldtelugu also arrow function lo kuda this explain cheyandi ..
ccbp lo job vachindha bro ,present ma brother kuda coaching thisukuntunnadu
thanks for giving lots of knowledge through this videos thanks u a lot
Its my pleasure
1)00:00 explain about different types of this method.
2)01:49 this key word in console.log method based on place where i used this keyword we get values.value of this key word outside of function and object.
3)09:50 create a this key word inside function
4)11:05 this keyword inside method.
5)14:30 this keyword inside event handler.
6)20:15 strict mode
Thanks
04:20 note point this always indicate the objects between curly brases
05:56 it is belong to window object are not can we check
08:00 if we use this as directly with one name this.x that is belong to the the window object idhi dudi gurthu
10:35 this will give window object as result for both inside and outside the function
13:40 lo object key :value pairs
Vuntayi value ki manam apstorphes ivvali kada mari akkada function ki kooda ivvala?
No string ki matrame quotations ivaali
madam please also with the arrow functions within object and arrow functions in callbacks
Just try with your doubt then you can easily understand
Suberb explanation madam
Thank you
He'llo
Window also keyword or it's a object?
If u don't mind u hve any specific definition for window ?
It's a inbuilt object provided by browser
Object lopala function untey method iyidhi, then if object is inside another object then what it is called ?
Nested object
why mam displaying undefined using let instead of using var
Mention duration in the video where you have doubt
@@csworldtelugu10:14
Var tho declare chesina variables only window object (global object)lo properties la add avutayi
@@csworldtelugu thank you mam
For each, appendchild, explain chayade
already explain chesanu watch these videos
th-cam.com/video/fD1Fyfm8TZc/w-d-xo.html
th-cam.com/video/VbSJJsb6dLE/w-d-xo.html
ma'am if we let it shows undefined why?
I didn't
Let and const variables are block-scoped, which means they only exist within the block only... The window object doesn't have access variables which are declared with let and const keywords. Then it shows undefined
Promises,asnychronous js
I will explain next week
code snippet
//note in javascript everty thing is object
//we used this in different places base on point of location it will give output
// console.log(this)
// var x="jegini"
// this keyword outside a object
// console.log(this)
// test= {
// x:"jegini lokesh"
// }
// function add(a,b) {
// sum=a+b;
// }
//this act like a global object if we use outside a function.
// console.log(x);
// console.log(window.x);
// console.log(this.x);
// console.log(this.test)
//this is used inside the function.
// function inside( ) {
// console.log(this.x)
// }
// inside()
movie={
name:"rrr",
hero:"ntr",
title:function() {
console.log(this)
}
}
console.log(movie.title())
//event listine method
window.onload = function() {
var d=document.getElementById('loki3');
d.addEventListener('click',face)
}
function face() {
console.log("this is from event listiner",this)
}
//use strit is pending
Good
akka please koddiga dark mode use cheyyava
Sure I will use
@@csworldtelugu thanks akka
this keyword works based on its scope?
i am right?
Not exactly scope
@@csworldtelugu ok mam now i watched complete videos of this
Thankyou , Good explanation
@@jalandharbandari4092 good
,"Embroiderad"
Thanks