Это видео недоступно.
Сожалеем об этом.

5 JavaScript Math Functions You Need to Know

Поделиться
HTML-код
  • Опубликовано: 30 июл 2023
  • In today's video, we'll be having a look at 5+ useful math functions in JavaScript which you may haven't heard of before. You might find that these come in handy when doing, well, mathematics 😎
    For your reference, check this out:
    developer.mozi...
    🏫 My Udemy Courses - www.udemy.com/...
    🎨 Download my VS Code theme - marketplace.vi...
    💜 Join my Discord Server - / discord
    🐦 Find me on Twitter - / dcodeyt
    💸 Support me on Patreon - / dcode
    📰 Follow me on DEV Community - dev.to/dcodeyt
    📹 Join this channel to get access to perks - / @dcode-software
    If this video helped you out and you'd like to see more, make sure to leave a like and subscribe to dcode!
    #dcode #javascript

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

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

    Another great video, thanks dcode! I wrote this whilst listening, a method of cleansing a dirty array into numerical values;
    let data = [-1, 236.222, "cat", "",, 8.2, 0.7, "23", 24, 0o234, 0b01011];
    data = data.map(value => +value).filter(Number.isFinite);
    Works well!

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

    Thank you for the tuts

  • @gobinda-qm8ix
    @gobinda-qm8ix Год назад

    Can you make a video on how to write and solve any equation using js

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

    What's the differences between Math.ceil() and Math.round() ???

    • @vizikey
      @vizikey Год назад +1

      Math.round() as the name implies, will round to the nearest whole number.
      Math.round(1.2) = 1, Math.round(1.7) = 2
      Math.ceil() will always round up to the next whole number.
      Math.ceil(1.2) = 2, Math.ceil(1.7) = 2
      Math.floor() will always round down to a whole number.
      Math.floor(1.2) = 1, Math.floor(1.7) = 1

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

      @@vizikey wow, now I totally got it! Thanks 💜

  • @shamelnet48
    @shamelnet48 Год назад +1

    please
    Can you explain 'class' in javascript

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

      Next-level object with variables which u can copy n paste them to normal objects (instead of creating the whole object with all properties) n just change the inputs n use that final modified object!
      It's like a template object!
      Same properties but different values!

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

      He has a playlist covering it.
      ruclips.net/p/PLVvjrrRCBy2I2eE1e1yOuhts2oTvWesMy

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

    css and html video please