Learn JavaScript MOUSE EVENTS in 10 minutes! 🖱

  Рет қаралды 47,599

Bro Code

Bro Code

Күн бұрын

Пікірлер: 44
@BroCodez
@BroCodez 11 ай бұрын
// eventListener = Listen for specific events to create interactive web pages // events: click, mouseover, mouseout // .addEventListener(event, callback); const myBox = document.getElementById("myBox"); myBox.addEventListener("click", event => { event.target.style.backgroundColor = "tomato"; event.target.textContent = "OUCH! 🤕"; }); myBox.addEventListener("mouseover", event => { event.target.style.backgroundColor = "yellow"; event.target.textContent = "Don't do it 😲"; }); myBox.addEventListener("mouseout", event => { event.target.style.backgroundColor = "lightgreen"; event.target.textContent = "Click Me 😀"; }); Document Click Me 😀 #myBox{ background-color: lightgreen; width: 300px; height: 300px; font-size: 4.1rem; font-weight: bold; display: flex; align-items: center; text-align: center; }
@masternobody1896
@masternobody1896 11 ай бұрын
yo make more video about how to get a job please
@user-sy9hm8cl2h
@user-sy9hm8cl2h 3 сағат бұрын
@@masternobody1896 🤣🤣 same
@high.notes1
@high.notes1 11 ай бұрын
Bro I majorly respect you and I feel like you're working so hard to keep posting content for us. I feel like you should just be free to take a break whenever you feel like it because I know the amount of hard work you put into these videos.
@BroCodez
@BroCodez 11 ай бұрын
I appreciate that! Tbh I'm mentally exhausted 😩
@Chilli_Tea
@Chilli_Tea 11 ай бұрын
@@BroCodez Have a break!!! More than enough content to keep us busy for a long while
@FlockofSmeagles
@FlockofSmeagles 24 күн бұрын
I love how stark you are about the curly brackets. "click, event, do this." It really is as simple as breaking it down into. For the lack of a better phrase, common tongue.
@MohamedMuhumed-d8u
@MohamedMuhumed-d8u 2 ай бұрын
the only mentor that made me fall in love with code
@KennethCox-or8bm
@KennethCox-or8bm 4 ай бұрын
Thank you, these videos have helped me learn JavaScript. Please would you let us know which VSCode extension you're using to pull up your Emoji console... I love what you're doing Thanks Again!
@leshanelim9454
@leshanelim9454 4 ай бұрын
thank you so much!! this helps a lot! my web development has improved significantly ever since i found your channel, and its only going to get better! i love the way you explain and show the code! kudos to you!!
@tharunkumar8507
@tharunkumar8507 9 ай бұрын
We would love your content. Thank you ❤ sir
@nikolasknappen4110
@nikolasknappen4110 3 ай бұрын
Bro Code is the Best Code! Thank you for all that you do. You are a gentleman and a scholar.
@hellmn9490
@hellmn9490 27 күн бұрын
your explanation is so good man
@PyrdeXshorts
@PyrdeXshorts 11 ай бұрын
Can you do this for Python also?
@Hnxzxvr
@Hnxzxvr 6 ай бұрын
No I don’t thing so cause it doesn’t have a getelementbyid or getelementbyclass functions
@TapasShrestha
@TapasShrestha Ай бұрын
awesome video sir , i always learn something new from your video . btw i have a question sir Whats the difference between using addeventlisterner and using .onclick , .onmouseover etc , its faster to use second option and easier too , event object also works on both methods , so which one should i use
@pietraderdetective8953
@pietraderdetective8953 11 ай бұрын
BroCode! lovin your videos! Any plan to make Zig videos? Looks to be the hype especially since people realizes Bun is made with Zig. cheers!
@liamlienhard8693
@liamlienhard8693 11 ай бұрын
how do you toggle between the original state and a custom state?
@leFrederic
@leFrederic 11 ай бұрын
Bro sorry for my stupid question, but how can I add emojis on the HTML file just like you did at 1:00?
@BroCodez
@BroCodez 11 ай бұрын
Win + ;
@RanMC9918
@RanMC9918 4 ай бұрын
@@BroCodez 🙏
@janlim9374
@janlim9374 8 ай бұрын
very clear thank you
@Snickerx
@Snickerx 5 ай бұрын
Super Film!
@RanMC9918
@RanMC9918 4 ай бұрын
most recent comment
@abdihamidmukhtar
@abdihamidmukhtar Ай бұрын
How to add emojis in HTML using VS CODE? Please share thar with us because it is easier than using HTML emojis by using tags
@Belumga77
@Belumga77 2 ай бұрын
you are my real bro
@248h9
@248h9 11 ай бұрын
Can you make course for making spigot plugins?
@camishan8465
@camishan8465 8 ай бұрын
This was awesome
@jiyoungkim9258
@jiyoungkim9258 10 ай бұрын
this is so cute functions xD
@FushigiMigi
@FushigiMigi 6 ай бұрын
Thanks!
@SHAHIDZE_GAMING
@SHAHIDZE_GAMING 11 ай бұрын
This is usefull
@AJ_Editz002
@AJ_Editz002 11 ай бұрын
Thankyou bro:)
@AsianCanadianInvestor
@AsianCanadianInvestor 7 ай бұрын
how did you add that emoji on the html page?
@jabulanipolokera7027
@jabulanipolokera7027 6 ай бұрын
press windows button and full stop button combination...you get emojis
@ahamednafees9961
@ahamednafees9961 11 ай бұрын
Everyone's getting an heart can i too bro?
@SHAHIDZE_GAMING
@SHAHIDZE_GAMING 11 ай бұрын
Lucky you
@liamlienhard8693
@liamlienhard8693 11 ай бұрын
btw, is the an easy way to make an undo button?
@BroCodez
@BroCodez 11 ай бұрын
Ctrl + z my brother lol
@l213dhanesh3
@l213dhanesh3 11 ай бұрын
Code bro😊
@sergiocondo9585
@sergiocondo9585 4 ай бұрын
Muy buen video, gracias
@sergiocondo9585
@sergiocondo9585 4 ай бұрын
Buen dia, como hago para que aparezca los emojis?
@essekgeldim
@essekgeldim 11 ай бұрын
First
@AshwinSI-px5yo
@AshwinSI-px5yo 5 ай бұрын
How did you bring the emoji box in vs code ??
@RanMC9918
@RanMC9918 4 ай бұрын
windows + "."
Learn JavaScript KEY EVENTS in 10+ minutes! ⌨
11:16
Bro Code
Рет қаралды 26 М.
Learn JavaScript Event Listeners In 18 Minutes
18:03
Web Dev Simplified
Рет қаралды 594 М.
КОГДА К БАТЕ ПРИШЕЛ ДРУГ😂#shorts
00:59
BATEK_OFFICIAL
Рет қаралды 7 МЛН
Человек паук уже не тот
00:32
Miracle
Рет қаралды 3,6 МЛН
Will A Basketball Boat Hold My Weight?
00:30
MrBeast
Рет қаралды 148 МЛН
Friends make memories together part 2  | Trà Đặng #short #bestfriend #bff #tiktok
00:18
Learn JSON files in 10 minutes! 📄
10:09
Bro Code
Рет қаралды 59 М.
Build this JS calculator in 15 minutes! 🖩
15:20
Bro Code
Рет қаралды 642 М.
What are JavaScript PROMISES? 🤞
12:37
Bro Code
Рет қаралды 74 М.
Learn JavaScript OBJECTS in 7 minutes! 🧍
7:01
Bro Code
Рет қаралды 68 М.
One CPU To Rule Them All - Ryzen 7 9800X3D Review
12:47
Linus Tech Tips
Рет қаралды 1,1 МЛН
Build this JS STOPWATCH in 18 minutes! ⏱
18:06
Bro Code
Рет қаралды 30 М.
Learn JavaScript ARROW FUNCTIONS in 8 minutes! 🎯
8:02
Bro Code
Рет қаралды 39 М.
Learn JavaScript ELEMENT SELECTORS easy! 📑
17:38
Bro Code
Рет қаралды 27 М.
КОГДА К БАТЕ ПРИШЕЛ ДРУГ😂#shorts
00:59
BATEK_OFFICIAL
Рет қаралды 7 МЛН