ycliper

Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
Скачать

JavaScript Lingo: Math

Mozilla Developer Network

Free Code Camp

Pair Programming

Node.js

AngularJS

MongoDB

SQL

Code

Learn to Code

non-profits

full stack

coding bootcamp

software engineer

open source

Software

Data

System

Technology

Web Development

Javascript

Автор: freeCodeCamp.org

Загружено: 2015-08-23

Просмотров: 16759

Описание: JavaScript's Math object overview, as well as a brief heads-up on floating-point formula.

There is a static object named 'Math' in JS with many built in properties and methods.

You'll want to investigate this further whenever you're manipulating numbers. Check here before writing your own functions, because they may already be defined here.
https://developer.mozilla.org/en-US/d...

Examples include Math.random() which will return a random number in a given range and Math.round() which will round the input to the nearest integer. I used Math.random() when I built the random quote generator for the Free Code Camp zipline.

When you're working with numbers, you should also be aware that JS has an interesting attribute called "floating-point format". Depending on the amount of numbers, the size of those numbers, and the number of computations, JS may return something that is inaccurate by .00004. There are ways around this, and in general it doesn't pose issues, but it's something you should be aware of in the event you run into some problems that aren't making sense.

❤️ Support for this channel comes from our friends at Scrimba – the coding platform that's reinvented interactive learning: https://scrimba.com/freecodecamp

Не удается загрузить Youtube-плеер. Проверьте блокировку Youtube в вашей сети.
Повторяем попытку...
JavaScript Lingo: Math

Поделиться в:

Доступные форматы для скачивания:

Скачать видео

  • Информация по загрузке:

Скачать аудио

Похожие видео

© 2025 ycliper. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]