// 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`; } }
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
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
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)
@@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.
// 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
18 years old in india
Thank you dude, i 'm loving your videos, keep up the good work!
Happy to see you back. Keep on, chad
Thanks for your series
This is where I am in school currently thank you so much bro…also you should play more games on 2nd channel
Thanks for the tutorial
Thanks, bro. You're a real bro 💪
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
100% agree and after try experimenting also I personally made a full page for my self set up in different sections for each topic
Learning so much productive
So good ❤
bro please continue the react js series thank you!!
Sooo good 😊 plz do a full react course , Thanks in advance
Daddy Brocode teaches me lots
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
in my country 18 years old to drive and i'm from India
thanks
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)
Do a full react course bro : ]
bro casualy coding adult (18+) websites
Hahahahahaha
Danko
I must be 18 years old to have a driving license in Egypt
I didn't know that. Interesting.
@BroCodez but I just found out that it's OK to ride a motorcycle at 16
Same thing in India also
17 in UK for driving licence
Hey bro make a video on Springboot
Bro, plz make a android studio tutorial .😀😀😀😀😀
In Germany it's the same as in the US. You have to be 16 years old to have a driving license.
I think it is germany where you only need to be 12 or 14 to drink? Correct me if im wrong
@@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.
This being uploaded 26 seconds ago caught me off guard
Also how are there 3 comments here and much older than the video itself 💀
The video was unlisted, I'm making them public one by one each day
@@BroCodez Oh I see, the algorithm recommends your channel and I'm glad
It'll be very helpful for me
18 years
4:16
over 18 , sir
watching from Brazil, here we have to be 18+ to get a driver's license
18+ years 🇿🇦
the work is a piece of cake but he 18+ content seems kinda sus
IN india u need to have 18 + to get licence for mooped you need to have 16
18+ for DL
I must be 18 years old to have a driving license in India
yep!!
That’s was amazing. (I’m a novice)
Not working
We must be 18 years old to get a licence in India 🇮🇳
18 ethiopia
eh? AAYOOOOO
18 y.o. Kazakhstan
In India >=18
18
we need to be 11
i live in ohio
@@godlessslayer69 i cant bro 💀
what is the site for now? porn?
I must be 18 years old to have a driving license in India