If statements in JavaScript are easy 🤔

  Рет қаралды 48,383

Bro Code

Bro Code

Күн бұрын

Пікірлер: 82
@BroCodez
@BroCodez Жыл бұрын
// IF STATEMENTS = if a condition is true, execute some code // if not, do something else const myText = document.getElementById("myText"); const mySubmit = document.getElementById("mySubmit"); const resultElement = document.getElementById("resultElement"); let age; mySubmit.onclick = function(){ age = myText.value; age = Number(age); if(age >= 100){ resultElement.textContent = `You are TOO OLD to enter this site`; } else if(age == 0){ resultElement.textContent = `You can't enter. You were just born.` } else if(age >= 18){ resultElement.textContent = `You are old enough to enter this site` } else if(age < 0){ resultElement.textContent = `Your age can't be below 0`; } else{ resultElement.textContent = `You must be 18+ to enter this site`; } } My website Enter your age: submit
@M.V.CHOWDARI
@M.V.CHOWDARI Жыл бұрын
18 years old in india
@Moon-xr9hr
@Moon-xr9hr 9 ай бұрын
Thank you dude, i 'm loving your videos, keep up the good work!
@avazbek_usubjanoff
@avazbek_usubjanoff 14 сағат бұрын
Thank you so much BroCode😊
@DeadlyKnight04
@DeadlyKnight04 Жыл бұрын
This is where I am in school currently thank you so much bro…also you should play more games on 2nd channel
@MindfulRepetition
@MindfulRepetition 4 ай бұрын
Thanks for the help! This stuff is hard to understand right now, but this made it easier.
@Gabriel-rg7cy
@Gabriel-rg7cy Ай бұрын
5:14 In Brazil you have to be at least 18 to have a license (sometimes 14 years old drive without license, but anyways)
@edipedipbulmaz
@edipedipbulmaz Жыл бұрын
Happy to see you back. Keep on, chad
@MrPvssy
@MrPvssy Жыл бұрын
Daddy Brocode teaches me lots
@piotrmazgaj
@piotrmazgaj 5 ай бұрын
This is my seal. I have watched the entire video, understood it, and I can explain it in my own words, thus I have gained knowledge. This is my seal.
@xzex2609
@xzex2609 Жыл бұрын
Recently in Vs code I got a console in the terminal , and I dont need to use a browser for consol.log logging , I think node.js do this , and if the contents doesn't involve Html context there is no need to open a browser , just a terminal will do
@xzex2609
@xzex2609 Жыл бұрын
I did see his last js but unlike python I didn't follow along. the best way to follow along is that you create a minimal folder with three js html ,css files that are linked , use it as new project and drop one on the vscode icon and use OPERA floating window for the lessonns and you have your editors web page and in a small window bro , and try to do things ahead of him or at least don't copy and when the lessons done try to write it by yourself. some people find it hard to setup three files and open a web page but this way it just tooks a drag and drop
@l-fitness3590
@l-fitness3590 11 ай бұрын
100% agree and after try experimenting also I personally made a full page for my self set up in different sections for each topic
@Heikal.q
@Heikal.q 3 ай бұрын
ive been doing that ever since i started learning front end and so far html and css have been super easy because of doing that so i would most definitely recommend it!
@xzex2609
@xzex2609 3 ай бұрын
@@Heikal.q remembering those days that we make only three file is sweet , now I see a full stack web project needs you to create nearly 100 files or more , half in python , others in TypeScript and Node so be prepare to make as files and folders that you can do , cause web development in Libraries and frameworks needs you too
@abdeSaves
@abdeSaves 9 ай бұрын
bro casualy coding adult (18+) websites
@duoroyale6288
@duoroyale6288 6 ай бұрын
Hahahahahaha
@nikhilrai322
@nikhilrai322 2 ай бұрын
😂😂
@Hnxzxvr
@Hnxzxvr Ай бұрын
I made an age checker in c++ bro
@cjlovesjesus4
@cjlovesjesus4 3 ай бұрын
1:07 I guess I can't enter my own site then 💀
@Xaviercomment586
@Xaviercomment586 Жыл бұрын
bro please continue the react js series thank you!!
@coolomar7804
@coolomar7804 Жыл бұрын
I must be 18 years old to have a driving license in Egypt
@BroCodez
@BroCodez Жыл бұрын
I didn't know that. Interesting.
@coolomar7804
@coolomar7804 Жыл бұрын
@BroCodez but I just found out that it's OK to ride a motorcycle at 16
@tricksforsolving2804
@tricksforsolving2804 11 ай бұрын
Same thing in India also
@helioobianchi
@helioobianchi 9 ай бұрын
Thanks, bro. You're a real bro 💪
@kingsley.D.
@kingsley.D. 2 ай бұрын
Hey man... Grandpas are human too 😅 Nice tutorial by way, thank you.
@biryanibroseph210
@biryanibroseph210 7 ай бұрын
Sooo good 😊 plz do a full react course , Thanks in advance
@nguyenphulam2849
@nguyenphulam2849 Жыл бұрын
Thanks for your series
@tricksforsolving2804
@tricksforsolving2804 11 ай бұрын
Learning so much productive
@ahmedabbas_forweb5774
@ahmedabbas_forweb5774 4 ай бұрын
You are leader❤
@l8ht
@l8ht 6 ай бұрын
Thanks for the tutorial
@CloudOps_Studio
@CloudOps_Studio 3 ай бұрын
This really good
@MajesticaYEH
@MajesticaYEH 8 ай бұрын
So good ❤
@Lurmog
@Lurmog Жыл бұрын
Can you do a series of videos for learning rust please? 🥺 (there is so much ressources available for learning rust likes the official Rust Book website, rust by example, rust by practice and rustlings)
@Data_Falcon
@Data_Falcon 7 ай бұрын
in my country 18 years old to drive and i'm from India
@DeviantMCC
@DeviantMCC 8 ай бұрын
4:16
@endisalihu6308
@endisalihu6308 Жыл бұрын
Do a full react course bro : ]
@Tambuburay888
@Tambuburay888 Жыл бұрын
This being uploaded 26 seconds ago caught me off guard Also how are there 3 comments here and much older than the video itself 💀
@BroCodez
@BroCodez Жыл бұрын
The video was unlisted, I'm making them public one by one each day
@Tambuburay888
@Tambuburay888 Жыл бұрын
@@BroCodez Oh I see, the algorithm recommends your channel and I'm glad It'll be very helpful for me
@nintendogamer5075
@nintendogamer5075 Жыл бұрын
In Germany it's the same as in the US. You have to be 16 years old to have a driving license.
@andyl9920
@andyl9920 Жыл бұрын
I think it is germany where you only need to be 12 or 14 to drink? Correct me if im wrong
@nintendogamer5075
@nintendogamer5075 Жыл бұрын
@@andyl9920 Technically you can with 14, but there are some regulations. I think you have to be 18, to drink officially, but with the age of 16, there are less regulations than with the age of 14.
@GiftMthimunye
@GiftMthimunye Жыл бұрын
Danko
@demonx_xgod
@demonx_xgod 8 ай бұрын
thanks
@NazneenNaharNishi
@NazneenNaharNishi Жыл бұрын
Bro, plz make a android studio tutorial .😀😀😀😀😀
@raphaelsousa2046
@raphaelsousa2046 6 ай бұрын
watching from Brazil, here we have to be 18+ to get a driver's license
@markteleuca
@markteleuca 7 ай бұрын
the work is a piece of cake but he 18+ content seems kinda sus
@deeplife9654
@deeplife9654 Жыл бұрын
Hey bro make a video on Springboot
@psabaezil9451
@psabaezil9451 4 ай бұрын
in Iraq we must be 18+ to get a driving license
@AndyBorzi
@AndyBorzi Жыл бұрын
17 in UK for driving licence
@gmkreddy4075
@gmkreddy4075 9 ай бұрын
IN india u need to have 18 + to get licence for mooped you need to have 16
@iowatheother4986
@iowatheother4986 10 күн бұрын
UMMM MAYBE DONT WATCH THIS ONE IN PUBLIC WITH SOUND ON OUTPUT AUDIO LMAO. 7:27
@meriemselmoune6279
@meriemselmoune6279 3 ай бұрын
in my country (Algeria) we should be at least 18 yo to have a driving license
@Piyushkumar_03
@Piyushkumar_03 9 ай бұрын
We must be 18 years old to get a licence in India 🇮🇳
@tswaggcodes5
@tswaggcodes5 8 ай бұрын
That’s was amazing. (I’m a novice)
@hlahtunthein2830
@hlahtunthein2830 5 ай бұрын
over 18 , sir
@Priyankajeeva-m1h
@Priyankajeeva-m1h Жыл бұрын
I must be 18 years old to have a driving license in India
@pranavmitra2391
@pranavmitra2391 Жыл бұрын
yep!!
@LebogangTsatsi
@LebogangTsatsi 6 ай бұрын
18+ years 🇿🇦
@tsben5600
@tsben5600 11 ай бұрын
18 ethiopia
@Cartoon_memes_f
@Cartoon_memes_f 10 ай бұрын
Not working
@richarddevries2022
@richarddevries2022 Жыл бұрын
18 years
@aravindvijaya567
@aravindvijaya567 3 ай бұрын
Indian 18+ to a driving License
@mogyi1839
@mogyi1839 4 ай бұрын
must be 18 years old to have a driving license in Macedonia
@harshjaiswal1634
@harshjaiswal1634 Жыл бұрын
18+ for DL
@armat_dt
@armat_dt Жыл бұрын
18 y.o. Kazakhstan
@EverydayEnglishOnline
@EverydayEnglishOnline 9 ай бұрын
In India >=18
@Inspire_Transform
@Inspire_Transform 7 ай бұрын
eh? AAYOOOOO
@godlessslayer69
@godlessslayer69 9 ай бұрын
we need to be 11
@godlessslayer69
@godlessslayer69 9 ай бұрын
i live in ohio
@raphaelsousa2046
@raphaelsousa2046 6 ай бұрын
@@godlessslayer69 i cant bro 💀
@AbdurahmanNoori-s9o
@AbdurahmanNoori-s9o Ай бұрын
in afghanistan you must 18
@Triny-i5t
@Triny-i5t 4 ай бұрын
its kind of possible to be -1 year old
@adarkatz9072
@adarkatz9072 3 ай бұрын
17
@niocoekaerts8437
@niocoekaerts8437 9 ай бұрын
18
@parthpatidar2764
@parthpatidar2764 6 ай бұрын
what is the site for now? porn?
@rajpatel1279
@rajpatel1279 6 ай бұрын
I must be 18 years old to have a driving license in India
The JavaScript checked property is easy ✅
10:07
Bro Code
Рет қаралды 32 М.
JavaScript FUNCTIONS are easy! 📞
12:14
Bro Code
Рет қаралды 51 М.
Мясо вегана? 🧐 @Whatthefshow
01:01
История одного вокалиста
Рет қаралды 7 МЛН
Une nouvelle voiture pour Noël 🥹
00:28
Nicocapone
Рет қаралды 9 МЛН
黑天使只对C罗有感觉#short #angel #clown
00:39
Super Beauty team
Рет қаралды 36 МЛН
JavaScript VARIABLES are easy! 📦
12:49
Bro Code
Рет қаралды 91 М.
Java if statements 🚧【6 minutes】
6:12
Bro Code
Рет қаралды 178 М.
Javascript If Else Statements | Javascript Tutorial For Beginners
11:41
Learn DOM Manipulation In 18 Minutes
18:37
Web Dev Simplified
Рет қаралды 1 МЛН
JavaScript Functions Crash Course
1:36:54
freeCodeCamp.org
Рет қаралды 198 М.
Learn JavaScript ARROW FUNCTIONS in 8 minutes! 🎯
8:02
Bro Code
Рет қаралды 46 М.
JavaScript Course for Beginners - Your First Step to Web Development
48:17
Programming with Mosh
Рет қаралды 13 МЛН
#12 Conditional Statements If Else in JavaScript
12:17
Telusko
Рет қаралды 95 М.
Мясо вегана? 🧐 @Whatthefshow
01:01
История одного вокалиста
Рет қаралды 7 МЛН