JavaScript VARIABLES are easy! 📦

Поделиться
HTML-код
  • Опубликовано: 3 окт 2024

Комментарии • 44

  • @ЕкатеринаБарабашова-л2э
    @ЕкатеринаБарабашова-л2э 2 месяца назад +6

    Simple and very methodological explanations I've ever seen. Deeply thankful for your job :)

  • @runaway4358
    @runaway4358 3 месяца назад +3

    Ohh finally i found a perfect channel for learning JS, thanks BroCode.

  • @GiftMthimunye
    @GiftMthimunye 11 месяцев назад +12

    Wow never knew it was this easy great explanation 💪

  • @BroCodez
    @BroCodez  Год назад +16

    // variable = A container that stores a value.
    // Behaves as if it were the value it contains.
    let fullName = "Bro Code";
    let age = 25;
    let isStudent = false;
    document.getElementById("p1").textContent = `Your name is ${fullName}`;
    document.getElementById("p2").textContent = `You are ${age} years old`;
    document.getElementById("p3").textContent = `Enrolled: ${isStudent}`;


    My website

    • @RealReeks
      @RealReeks 7 месяцев назад +1

      The ${} just isnt working for me

    • @aliayob4001
      @aliayob4001 3 месяца назад

      ​Because you aren't using the same type characters that he is using for the string​. Use ` not '@@RealReeks

    • @staniokstqrtwyr89
      @staniokstqrtwyr89 3 месяца назад +4

      ​​@@RealReeks Probably you are using a single quote ' instead of a back tick `

    • @SourovChandraBarmon
      @SourovChandraBarmon 2 месяца назад

      🥰

  • @piotrmazgaj
    @piotrmazgaj 2 месяца назад +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.

  • @sunnywunny
    @sunnywunny 22 дня назад +1

    the biggest betrayal ever would be if Bro came out and said that his favourite food wasnt actually pizza and he just said it and went with it.

  • @DoNsMaK190
    @DoNsMaK190 10 месяцев назад +5

    U are the the most giga chad on youtube ever thanks!!

  • @helioobianchi
    @helioobianchi 6 месяцев назад +1

    Thanks, bro. You're a real bro 💪

  • @Talaleyachoo
    @Talaleyachoo Месяц назад

    Cs get degrees,best line ever😂

  • @Fad-kun
    @Fad-kun 19 дней назад

    Thanks

  • @wewindows1
    @wewindows1 24 дня назад

    i wish you were my professor in my university

  • @saimothi6715
    @saimothi6715 7 месяцев назад

    thank you so much sir.. for great & clear explaination

  • @younestrigui5446
    @younestrigui5446 11 месяцев назад +1

    bro ! you are the best ever

  • @TheStRaX_
    @TheStRaX_ 11 месяцев назад +4

    My bro codes, by watching bro code

  • @IBAÑEZJAYNIEL
    @IBAÑEZJAYNIEL 8 месяцев назад +1

    Thankyou so much

  • @ArteenAhmadzadeh
    @ArteenAhmadzadeh 11 месяцев назад +17

    Im i the only one who can see these?

    • @peaklegacy146
      @peaklegacy146 11 месяцев назад +5

      This video is unlisted. That means you can only see this video if you have the link to it. You got the link by clicking on the video at the end of the previous video

    • @Luxury_Deluxe_original
      @Luxury_Deluxe_original 3 месяца назад

      See what?

  • @chibuezealaekwe4212
    @chibuezealaekwe4212 6 месяцев назад

    This is great, thanks

  • @medad1877
    @medad1877 11 месяцев назад +7

    I wrote
    console.log('you are ${age} years old');
    like this but it's not typing the number of age, it's just write the ${age} like this in the out put, I don't know what is my mistake.
    help me ...

    • @АнатолійБагняк
      @АнатолійБагняк 11 месяцев назад +5

      Try to use ` instead of " or '

    • @BroCodez
      @BroCodez  11 месяцев назад +13

      @medad1877 use backticks ` ` not apostrophes ' ' They do look similar

    • @alfiemccalfry6635
      @alfiemccalfry6635 7 месяцев назад

      You might be viewing the wrong section. I was getting frustrated for a while until I realised it was because I was viewing the source instead of the console on the browser.

  • @EledeRR
    @EledeRR 11 месяцев назад +1

    Here before it gets released to public

  • @00CrayZ000
    @00CrayZ000 10 дней назад

    use the shortcut ctrl + / after selecting the command to make it as a comment

  • @izume530
    @izume530 10 месяцев назад +4

    I'm getting this error when i try to run it even when i copied and pasted everything from the comment or the video
    Uncaught TypeError: Cannot set properties of null (setting 'textContent') what should i do?

    • @ShineOnStar
      @ShineOnStar 10 месяцев назад +3

      place at the end of body

    • @RealReeks
      @RealReeks 7 месяцев назад

      at the end of which body cause its not working for me either
      @@ShineOnStar

  • @antoindustries6774
    @antoindustries6774 11 месяцев назад +1

    👍👍👍👍

  • @oluwajomilojuajagbe5928
    @oluwajomilojuajagbe5928 3 месяца назад

    Hi, Good day. Please what is the difference between .innerHTML and .textContent

  • @Muuslim7777
    @Muuslim7777 7 месяцев назад +2

    when I write ${} the compiler read it as string
    what the solve ??

  • @DataFlux-k5t
    @DataFlux-k5t 11 месяцев назад +1

    i wish i could give you a Pizza😍😍

  • @tychedev
    @tychedev 11 месяцев назад

    what happened??

  • @mijana961
    @mijana961 11 месяцев назад

    Just want to let you know i love you

  • @a.1023
    @a.1023 10 месяцев назад +1

    let x;
    x = 100;
    console.log(x)
    Let age=25;
    console.log(age) /
    console.log (`you are {age} years old`)

  • @AvisSpoofer
    @AvisSpoofer 5 месяцев назад

    whats the difference between var and let

  • @inuku5320
    @inuku5320 4 месяца назад +3

    C's get degrees lol