Event listener in javascript

  Рет қаралды 40,835

Hitesh Choudhary

Hitesh Choudhary

Күн бұрын

Пікірлер: 59
@HiteshCodeLab
@HiteshCodeLab 4 жыл бұрын
Full course is FREE and will be available here courses.learncodeonline.in/learn/Complete-Javascript-course
@manasraikaushik864
@manasraikaushik864 7 ай бұрын
We dont have access to any of the attachments you provided, what is the need to keep video free ? just do it paid too ...
@dinesh0743
@dinesh0743 4 жыл бұрын
Best javascript series ever.., on KZbin.
@saibhanumathurthi903
@saibhanumathurthi903 4 жыл бұрын
Hitesh sir, I'm a fan of the way you teaches everything✋
@monusingh3719
@monusingh3719 4 жыл бұрын
Sir you told to always use return while using curly braces in arrow and callbacks so here at 6:05 at line 17 you are not using return keyword......pls tell
@meetsakhareliya755
@meetsakhareliya755 3 жыл бұрын
In function we do not always return. Whenever there is case in which function returns something , if we put braces we have to write return. if there is nothing to return , no need to write return weather it is a simple function or arrow function. I hope you understand my point
@aarushgoyal
@aarushgoyal 4 жыл бұрын
Signs that you have become a Pro KZbinr : You start finding innovative methods for Subscribe Appeal
@afamsval
@afamsval 4 жыл бұрын
Thank you so much for this video. I am really enjoying the quality of the video .
@techiesrikanth2447
@techiesrikanth2447 4 жыл бұрын
Thanks for Amazing course Hitesh !!
@redemption4836
@redemption4836 2 жыл бұрын
What exactly does the element in magiccolorchanger does if the color part grabs the actual color?
@soumeshk
@soumeshk 4 жыл бұрын
Which VS Code theme do you use?
@gauravnag9046
@gauravnag9046 4 жыл бұрын
Hi SIr, Thank you for explaining concept. But please clarify if there are 10 colors, then we need to write magicColorChanger() 10 times. Instead of it can we pick the colors dynamically with less number of code lines. If yes, pls guide on that
@rajkumarv.b565
@rajkumarv.b565 2 жыл бұрын
Here's my version of the logic : const red = document.querySelector(".red") const cyan = document.querySelector(".cyan") const violet = document.querySelector(".violet") const orange = document.querySelector(".orange") const pink = document.querySelector(".pink") const center = document.querySelector(".center") const getElementBGColor = (Element) => { return window.getComputedStyle(Element).backgroundColor } const magicColorChanger = (element) => { element.addEventListener("mouseenter",() => { center.style.background = getElementBGColor(element) }) } magicColorChanger(red) magicColorChanger(cyan) magicColorChanger(violet) magicColorChanger(orange) magicColorChanger(pink) magicColorChanger(center)
@gunvantchandratre8333
@gunvantchandratre8333 4 жыл бұрын
Really Nice Video Sir 👌
@Ravi-oh8xz
@Ravi-oh8xz 2 жыл бұрын
Enjoyed the project ❤️❤️
@vivekhridayanandverma854
@vivekhridayanandverma854 4 жыл бұрын
Hitesh sir doing good with your current running course with js thanks for this. In this project I am getting type error like failed to execute getComputedStyle on Windows...parameter 1 is not type of element #error I used setBGColor but i am able garb first only rest of not able to grab...please suggest about error
@bobcoderz
@bobcoderz 4 жыл бұрын
Hey Sir can you share how you configure vscode :)
@aarushgoyal
@aarushgoyal 4 жыл бұрын
@Unique Rohit Patil I guess he is talking about the custom color scheme of Hitesh sir
@somitdas7740
@somitdas7740 4 жыл бұрын
Hi! @hitesh sir As i can see this playlist contains videos till the number 37 and further from 38 its private. WHhy is that so?
@aarushgoyal
@aarushgoyal 4 жыл бұрын
he has made the entire playlist but is releasing one video a day
@sivasai6890
@sivasai6890 4 жыл бұрын
Thanks a lot sir for free course
@JoyKimaiyo
@JoyKimaiyo Жыл бұрын
Hi, Hitesh I cannot access your website. Is it location wise or just the website cannot be accessed for everyone?
@rajeshveeranki3517
@rajeshveeranki3517 Жыл бұрын
HI this is CSS content.!! body { background: rgb(66, 66, 66); min-height: 100vh; display: flex; justify-content: center; align-items: center; position: relative; } .red { background: #e44236; margin-right: 5px; } .cyan { background: #25ccf7; margin-right: 5px; } .violet { background: #8b78e6; margin-right: 5px; } .orange { background: #ea7773; margin-right: 5px; } .pink { background: #bb2cd9; } .center { min-width: 400px; height: 400px; background: rgb(66, 66, 66); border-radius: 100%; transition: 0.2s ease-in-out all; } .color-hover { position: absolute; top: 10%; bottom: 0; left: 50%; transform: translateX(-50%); padding: 10px; display: flex; justify-content: center; flex-direction: row; } .text { padding: 10px; color: #ffffff; } .color { width: 120px; height: 30px; border-radius: 5%; margin-bottom: 30px; } .color:hover { cursor: pointer; } .color:last-child { margin-bottom: 0; }
@KidusYosef-x5n
@KidusYosef-x5n 10 ай бұрын
Thanks
@harmanpreetkaur3076
@harmanpreetkaur3076 9 ай бұрын
thanks🙂
@darkalpha6530
@darkalpha6530 3 жыл бұрын
Sir can we use the CSS property ":hover" to make it do all the things you told in this video?
@rellaraffick
@rellaraffick 3 жыл бұрын
Technically, yes we can. As we can see Tooltips on hover, Popups on hover works that way too. Sir has performed like in the video just for an example. That's a great question mate ! Keep it up & All the best
@sreeramp6688
@sreeramp6688 3 жыл бұрын
Nice nd Easy!!
@manojkumarm8398
@manojkumarm8398 4 жыл бұрын
hearty thanks fr this
@vraj3115
@vraj3115 4 жыл бұрын
#10minutesJS day 35! and not sleepy anymore !!
@willowayya
@willowayya 4 жыл бұрын
Dear sir with only one programming language can be job get or not ? I m on JavaScript
@ajaypathak2214
@ajaypathak2214 4 жыл бұрын
Why getComputedStyle not working with getElementsBy---. ?
@ankushladani496
@ankushladani496 2 жыл бұрын
Thank you sir...
@anbazhagan6826
@anbazhagan6826 4 жыл бұрын
This is... This is .. awesome.😍
@vijaynavale3919
@vijaynavale3919 4 жыл бұрын
Keep going 👍
@wasimrajamiddya7560
@wasimrajamiddya7560 2 жыл бұрын
Sir will I get certificate after completing this course?
@sufism48
@sufism48 4 жыл бұрын
from where i can get this code file?
@jaiswalvlog111
@jaiswalvlog111 4 жыл бұрын
they not show me same color, they show black color why?
@riteshpuley2891
@riteshpuley2891 4 жыл бұрын
Amazing
@NIDHISHARMA-ep6nc
@NIDHISHARMA-ep6nc 3 жыл бұрын
Tysm sir
@milankbudha
@milankbudha 4 жыл бұрын
plz provide source code also..It will be more easy for us to copy in our text editor directly rather than making a note in a copy .It will save our time..Thank you
@jaiswalvlog111
@jaiswalvlog111 4 жыл бұрын
sir plz show your div center css properties
@sudarshanjha6737
@sudarshanjha6737 3 жыл бұрын
Make body flex and add align item and justify content center .. Fir normal .center{ Height : 5rem; Width : 5rem Border-radius: 50%}
@VikramSingh-qg3nh
@VikramSingh-qg3nh 3 жыл бұрын
this was the 1st one i was unable to get output :( can you help me
@VikramSingh-qg3nh
@VikramSingh-qg3nh 3 жыл бұрын
resolved
@manyasingh7112
@manyasingh7112 4 жыл бұрын
Love u pajji
@085-vaibhavgusain9
@085-vaibhavgusain9 3 жыл бұрын
same funtionality const colorName = [".red",".cyan",".violet",".orange",".pink"] colorName.forEach((item) => { document.querySelector(item).addEventListener("mouseenter",() =>{ document.querySelector(".center").style.backgroundColor = window.getComputedStyle(document.querySelector(item)).backgroundColor;}) });
@kunalahuja4307
@kunalahuja4307 4 жыл бұрын
Something on Post messages please!
@tusharvashisht5
@tusharvashisht5 4 жыл бұрын
day 3 still stuck on this
@AgarwalAnup95
@AgarwalAnup95 4 жыл бұрын
First
@Mrvji-in
@Mrvji-in 11 ай бұрын
plz turn of add's
@rajeshbagguva3005
@rajeshbagguva3005 4 жыл бұрын
second
@udittyagi9238
@udittyagi9238 4 жыл бұрын
Third
@gurdeepsinghjohar1761
@gurdeepsinghjohar1761 4 жыл бұрын
Bro i need core java tutorial.🙂
@abhichi
@abhichi 3 жыл бұрын
Mr beast and u look so much similar 🤔😂
@robot67799
@robot67799 3 жыл бұрын
Amazing
New keyword in Javascript
12:32
Hitesh Choudhary
Рет қаралды 54 М.
Introduction to Array in javascript
17:50
Hitesh Choudhary
Рет қаралды 63 М.
Хаги Ваги говорит разными голосами
0:22
Фани Хани
Рет қаралды 2,2 МЛН
Непосредственно Каха: сумка
0:53
К-Media
Рет қаралды 12 МЛН
Почему Катар богатый? #shorts
0:45
Послезавтра
Рет қаралды 2 МЛН
Who is More Stupid? #tiktok #sigmagirl #funny
0:27
CRAZY GREAPA
Рет қаралды 10 МЛН
Learn JavaScript Event Listeners In 18 Minutes
18:03
Web Dev Simplified
Рет қаралды 604 М.
A counter project in javascript
14:13
Hitesh Choudhary
Рет қаралды 50 М.
How To Make Your Own JavaScript Events
10:27
Web Dev Simplified
Рет қаралды 82 М.
Code hoisting in javascript
16:49
Hitesh Choudhary
Рет қаралды 75 М.
Learn JavaScript KEY EVENTS in 10+ minutes! ⌨
11:16
Bro Code
Рет қаралды 30 М.
JavaScript Visualized - Event Loop, Web APIs, (Micro)task Queue
12:35
JavaScript addEventListener Method Tutorial in Hindi / Urdu
18:05
How to grab web elements in javascript
9:07
Hitesh Choudhary
Рет қаралды 40 М.
Хаги Ваги говорит разными голосами
0:22
Фани Хани
Рет қаралды 2,2 МЛН