Why the Math object in JavaScript is useful 🧮

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

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

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

    // Math = built-in object that provides a
    // collection of properties and methods
    let x = 3;
    let y = 2;
    let z = 1;
    //console.log(Math.PI);
    //console.log(Math.E);
    //z = Math.round(x);
    //z = Math.floor(x);
    //z = Math.ceil(x);
    //z = Math.trunc(x);
    //z = Math.pow(x, y);
    //z = Math.sqrt(x);
    //z = Math.log(x);
    //z = Math.sin(x);
    //z = Math.cos(x);
    //z = Math.tan(x);
    //z = Math.abs(x);
    //z = Math.sign(x);
    let max = Math.max(x, y, z);
    let min = Math.min(x, y, z);
    console.log(min);

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

      I have a question
      i did:
      let x = 90;
      let z;
      z = Math.cos(x);
      console.log(z)
      and it gives: -0.4480736161291701
      but the actual value of cos(90) = 0
      can you plz explain the difference b/w these values....

  • @Thesilveraspect
    @Thesilveraspect Год назад +5

    I have commented less times than I have fingers on one hand, however I had to say thank-you. I am very grateful for the effort you put in that helps so many learn. That helps me learn! Take care!

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

    Thanks, bro. You're a real bro 💪

  • @IMCYT
    @IMCYT Год назад +2

    Yooo, love ya bud, Thanks for educating me on Python, I'm probably going to learn JS

  • @user006_SKVN8G6LH
    @user006_SKVN8G6LH Год назад

    Oooo i love this and didnt know about it before thanks !!!

  • @piotrmazgaj
    @piotrmazgaj 5 месяцев назад +1

    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.

  • @selvamanir8671
    @selvamanir8671 Год назад

    Thanks bro ❤

  • @Rajtreasurenft
    @Rajtreasurenft 10 месяцев назад

    easy thanks bro code for this beautiful course

  • @alan-overthenet
    @alan-overthenet 6 месяцев назад

    Thank you Bro. I have 100 over Udemy courses. The number would be a lot smaller if I had found you earlier. Your teaching is superb; it's the way I learn.
    What's your opinion on TypeScript? Do you use it? 🍕

  • @GiftMthimunye
    @GiftMthimunye Год назад

    The best always

  • @capslock3250
    @capslock3250 Год назад

    Legend.

  • @MrPvssy
    @MrPvssy Год назад

    Daddy Brocode teaches me lots

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

    top bro

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

    🧮🧮🧮🧮🧮🧮🧮🧮🧮🧮🧮🧮🧮🧮

  • @darker1685
    @darker1685 Год назад

    hey brocode

  • @santaiaja_Lah
    @santaiaja_Lah Год назад

    Ow so

  • @MrPvssy
    @MrPvssy Год назад +2

    Daddy Brocode teaches me lots