If statements in JavaScript are easy 🤔

แชร์
ฝัง
  • เผยแพร่เมื่อ 30 ก.ย. 2024

ความคิดเห็น • 73

  • @BroCodez
    @BroCodez  ปีที่แล้ว +16

    // 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 9 หลายเดือนก่อน +3

      18 years old in india

  • @Abde473
    @Abde473 5 หลายเดือนก่อน +9

    bro casualy coding adult (18+) websites

    • @duoroyale6288
      @duoroyale6288 3 หลายเดือนก่อน

      Hahahahahaha

  • @coolomar7804
    @coolomar7804 11 หลายเดือนก่อน +6

    I must be 18 years old to have a driving license in Egypt

    • @BroCodez
      @BroCodez  11 หลายเดือนก่อน

      I didn't know that. Interesting.

    • @coolomar7804
      @coolomar7804 11 หลายเดือนก่อน

      @BroCodez but I just found out that it's OK to ride a motorcycle at 16

    • @tricksforsolving2804
      @tricksforsolving2804 8 หลายเดือนก่อน

      Same thing in India also

  • @xzex2609
    @xzex2609 11 หลายเดือนก่อน +7

    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 8 หลายเดือนก่อน +2

      100% agree and after try experimenting also I personally made a full page for my self set up in different sections for each topic

    • @cityzq8278
      @cityzq8278 17 วันที่ผ่านมา +1

      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 17 วันที่ผ่านมา

      @@cityzq8278 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

  • @xzex2609
    @xzex2609 11 หลายเดือนก่อน +3

    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

  • @DeadlyKnight04
    @DeadlyKnight04 11 หลายเดือนก่อน +4

    This is where I am in school currently thank you so much bro…also you should play more games on 2nd channel

  • @Data_Falcon
    @Data_Falcon 4 หลายเดือนก่อน +2

    in my country 18 years old to drive and i'm from India

  • @Xaviercomment586
    @Xaviercomment586 11 หลายเดือนก่อน +3

    bro please continue the react js series thank you!!

  • @harshjaiswal1634
    @harshjaiswal1634 10 หลายเดือนก่อน +2

    18+ for DL

  • @Tambuburay888
    @Tambuburay888 11 หลายเดือนก่อน +2

    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  11 หลายเดือนก่อน +5

      The video was unlisted, I'm making them public one by one each day

    • @Tambuburay888
      @Tambuburay888 11 หลายเดือนก่อน

      @@BroCodez Oh I see, the algorithm recommends your channel and I'm glad
      It'll be very helpful for me

  • @SkySenseiMC
    @SkySenseiMC 5 หลายเดือนก่อน +1

    4:16

  • @gmkreddy4075
    @gmkreddy4075 5 หลายเดือนก่อน +1

    IN india u need to have 18 + to get licence for mooped you need to have 16

  • @meriemselmoune6279
    @meriemselmoune6279 21 วันที่ผ่านมา

    in my country (Algeria) we should be at least 18 yo to have a driving license

  • @raphaelsousa2046
    @raphaelsousa2046 2 หลายเดือนก่อน

    watching from Brazil, here we have to be 18+ to get a driver's license

  • @psabaezil9451
    @psabaezil9451 หลายเดือนก่อน

    in Iraq we must be 18+ to get a driving license

  • @Moon-xr9hr
    @Moon-xr9hr 6 หลายเดือนก่อน +1

    Thank you dude, i 'm loving your videos, keep up the good work!

  • @mogyi1839
    @mogyi1839 หลายเดือนก่อน

    must be 18 years old to have a driving license in Macedonia

  • @rajpatel1279
    @rajpatel1279 3 หลายเดือนก่อน

    I must be 18 years old to have a driving license in India

  • @Priyankajeeva-m1h
    @Priyankajeeva-m1h 9 หลายเดือนก่อน +1

    I must be 18 years old to have a driving license in India

  • @markteleuca
    @markteleuca 3 หลายเดือนก่อน

    the work is a piece of cake but he 18+ content seems kinda sus

  • @aravindvijaya567
    @aravindvijaya567 11 วันที่ผ่านมา

    Indian 18+ to a driving License

  • @piotrmazgaj
    @piotrmazgaj หลายเดือนก่อน

    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.

  • @Triny-i5t
    @Triny-i5t หลายเดือนก่อน

    its kind of possible to be -1 year old

  • @adarkatz9072
    @adarkatz9072 วันที่ผ่านมา

    17

  • @MindfulRepetition
    @MindfulRepetition หลายเดือนก่อน

    Thanks for the help! This stuff is hard to understand right now, but this made it easier.

  • @MrPvssy
    @MrPvssy 11 หลายเดือนก่อน +1

    Daddy Brocode teaches me lots

  • @nintendogamer5075
    @nintendogamer5075 9 หลายเดือนก่อน +1

    In Germany it's the same as in the US. You have to be 16 years old to have a driving license.

    • @andyl9920
      @andyl9920 8 หลายเดือนก่อน

      I think it is germany where you only need to be 12 or 14 to drink? Correct me if im wrong

    • @nintendogamer5075
      @nintendogamer5075 8 หลายเดือนก่อน +1

      @@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.

  • @Madhusudhan_A
    @Madhusudhan_A 8 วันที่ผ่านมา

    This really good

  • @EverydayEnglishOnline
    @EverydayEnglishOnline 6 หลายเดือนก่อน

    In India >=18

  • @niocoekaerts8437
    @niocoekaerts8437 5 หลายเดือนก่อน

    18

  • @Inspire_Transform
    @Inspire_Transform 4 หลายเดือนก่อน

    eh? AAYOOOOO

  • @ahmedabbas_forweb5774
    @ahmedabbas_forweb5774 หลายเดือนก่อน

    You are leader❤

  • @LebogangTsatsi
    @LebogangTsatsi 3 หลายเดือนก่อน

    18+ years 🇿🇦

  • @hlahtunthein2830
    @hlahtunthein2830 2 หลายเดือนก่อน

    over 18 , sir

  • @godlessslayer69
    @godlessslayer69 6 หลายเดือนก่อน +1

    we need to be 11

    • @godlessslayer69
      @godlessslayer69 6 หลายเดือนก่อน

      i live in ohio

    • @raphaelsousa2046
      @raphaelsousa2046 2 หลายเดือนก่อน

      @@godlessslayer69 i cant bro 💀

  • @Lurmog
    @Lurmog 11 หลายเดือนก่อน

    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)

  • @Piyushkumar_03
    @Piyushkumar_03 6 หลายเดือนก่อน

    We must be 18 years old to get a licence in India 🇮🇳

  • @armat_dt
    @armat_dt 8 หลายเดือนก่อน

    18 y.o. Kazakhstan

  • @pragathid7743
    @pragathid7743 4 หลายเดือนก่อน

    Sooo good 😊 plz do a full react course , Thanks in advance

  • @NazneenNaharNishi
    @NazneenNaharNishi 11 หลายเดือนก่อน

    Bro, plz make a android studio tutorial .😀😀😀😀😀

  • @tricksforsolving2804
    @tricksforsolving2804 8 หลายเดือนก่อน

    Learning so much productive

  • @l8ht
    @l8ht 2 หลายเดือนก่อน

    Thanks for the tutorial

  • @deeplife9654
    @deeplife9654 11 หลายเดือนก่อน

    Hey bro make a video on Springboot

  • @Cartoon_memes_f
    @Cartoon_memes_f 7 หลายเดือนก่อน

    Not working

  • @tsben5600
    @tsben5600 8 หลายเดือนก่อน

    18 ethiopia

  • @AndyBorzi
    @AndyBorzi 10 หลายเดือนก่อน

    17 in UK for driving licence

  • @helioobianchi
    @helioobianchi 6 หลายเดือนก่อน

    Thanks, bro. You're a real bro 💪

  • @demonx_xgod
    @demonx_xgod 5 หลายเดือนก่อน

    thanks

  • @edipedipbulmaz
    @edipedipbulmaz 11 หลายเดือนก่อน

    Happy to see you back. Keep on, chad

  • @endisalihu6308
    @endisalihu6308 11 หลายเดือนก่อน

    Do a full react course bro : ]

  • @sayehghaderi9455
    @sayehghaderi9455 4 หลายเดือนก่อน

    So good ❤

  • @richarddevries2022
    @richarddevries2022 11 หลายเดือนก่อน

    18 years

  • @GiftMthimunye
    @GiftMthimunye 11 หลายเดือนก่อน

    Danko

  • @nguyenphulam2849
    @nguyenphulam2849 9 หลายเดือนก่อน

    Thanks for your series

  • @parthpatidar2764
    @parthpatidar2764 2 หลายเดือนก่อน

    what is the site for now? porn?

  • @tswaggcodes5
    @tswaggcodes5 5 หลายเดือนก่อน

    That’s was amazing. (I’m a novice)