No video

#17 How to use the JS Math object | JavaScript Full Tutorial

  Рет қаралды 10,720

Dev Dreamer

Dev Dreamer

Күн бұрын

🙂 SUBSCRIBE - hit the bell 🔔 and choose all: goo.gl/nYLZvz
In this lesson let's learn all about the built in Math object, the Math object contains math properties and methods that are used to do some really cool things such as generate random numbers an find the min and max values from a list.
------------------
👍 HTML FULL TUTORIAL: shorturl.at/fiCMV
👍 CSS FULL TUTORIAL: shorturl.at/clGSZ
------------------
FACEBOOK: / devdreamercode
TWITTER: / devdreamercode
SUBSCRIBE and hit the BELL NOTIFICATION 🔔: goo.gl/nYLZvz
------------------
Learn with Dev Dreamer! Step by step, easy to understand tutorials :-)

Пікірлер: 21
@BTFezzer
@BTFezzer 3 жыл бұрын
i struggled with the math object for a while but after watching this video i managed to smash the challenges thank you very much you are a brilliant teacher
@Hangoutapp
@Hangoutapp Жыл бұрын
🎉❤ I can't believe i just write my own code for the first time of my own and thank you so much❤😊 for the lesson
@vaibhavmevada9668
@vaibhavmevada9668 3 жыл бұрын
Thank you sir for making the video on javascript 👍
@DevDreamer
@DevDreamer 3 жыл бұрын
Hey Vaibhav, thank you for watching! 🙂👍
@Hangoutapp
@Hangoutapp Жыл бұрын
You explain easy 🎉, thank you, i need this kind of teacher.
@alejandromantilla3563
@alejandromantilla3563 3 жыл бұрын
Maybe I've misunderstood something, but I feel like Math.random().toFixed(1) * 10 creates numbers between 0 and 10. Not 1 and 10. Great video, btw! Loving the series so far.
@alejandromantilla3563
@alejandromantilla3563 3 жыл бұрын
Instead, I would write something like Math.random().toFixed(1) * 9 + 1
@DevDreamer
@DevDreamer 3 жыл бұрын
Hey Alejandro, thank you so much for watching, really glad you are enjoying the series! You are right 👍it would be 0-10. Your suggestion would return 1-10 but not as whole numbers. To get 1-10 as whole numbers we should be using Math.floor() like so: Math.floor(Math.random() * 10 + 1) Thanks again for watching, do you think the tasks at the end of the lessons are helpful? 🙂👍
@alejandromantilla3563
@alejandromantilla3563 3 жыл бұрын
@@DevDreamer You're absolutely right! In general, one would write something like this: Math.floor(Math.random() * (upperBound - lowerBound + 1) + lowerBound) Where upperBound and lowerBound are integers (10 and 1 respectively in your example). I've had some experience writing JS for personal projects (I'm more of a Python kinda guy) and so I usually skip those exercises, but I do believe they could be valuable to someone who has just started coding! Keep up the good work!! It amazes me how quickly you manage to release these videos.
@lolu6797
@lolu6797 2 жыл бұрын
Thank you, I loved this video. Coupled with some docs on MDN, it's very very good.
@user-yw9wo7of2r
@user-yw9wo7of2r 5 ай бұрын
Incredible tutorials. What vs code theme is that?
@dzajakeks5539
@dzajakeks5539 2 жыл бұрын
You make JS easier than easy
@DevDreamer
@DevDreamer 2 жыл бұрын
Thanks Rema, really glad you’re finding them useful and easy to understand. Practice and repetition is the key 👍
@dylanm7638
@dylanm7638 3 жыл бұрын
quick recap, nice
@0x0-Issa
@0x0-Issa 2 жыл бұрын
thank you sir
@webb-developer
@webb-developer 7 ай бұрын
@inhkhanhle884
@inhkhanhle884 3 жыл бұрын
Hope u will have a series convert HTML CSS to a Website from Dribble Design
@DevDreamer
@DevDreamer 3 жыл бұрын
Hey Đình Khánh Lê! Thank you so much for watching, there are a few Dribbble shots from scratch that are currently in the making, so please stay tuned 🙂👍
@inhkhanhle884
@inhkhanhle884 3 жыл бұрын
@@DevDreamer i mean , more viewer very like your series convert from Dribble , it beautiful . hope u make more video about this
@ca-lt1fc
@ca-lt1fc 3 жыл бұрын
last few tutorials used "let" and now it's "const"...i have a basic understanding of let vs const but do not clearly understand in what situations we use which??? Can you please clarify?
@yousafsabir7
@yousafsabir7 2 жыл бұрын
let is for the variables(whose values can be changed) however, const is to declare constants(whose values can never change)
#18 JS Comparison Operators | JavaScript Full Tutorial
14:10
Dev Dreamer
Рет қаралды 6 М.
10 Math Concepts for Programmers
9:32
Fireship
Рет қаралды 1,8 МЛН
طردت النملة من المنزل😡 ماذا فعل؟🥲
00:25
Cool Tool SHORTS Arabic
Рет қаралды 24 МЛН
Violet Beauregarde Doll🫐
00:58
PIRANKA
Рет қаралды 40 МЛН
5 JavaScript Math Functions You Need to Know
13:36
dcode
Рет қаралды 3,4 М.
The TRUTH About Math for Programming
9:51
Internet Made Coder
Рет қаралды 120 М.
#44 What is the Spread Operator? | JavaScript Full Tutorial
16:01
How to write a debounce function | Writing our debounce function in JavaScript
10:46
Front-end Science із Сергієм Пузанковим
Рет қаралды 31 М.
#38. How to use Var, Let and Const | JavaScript Full Tutorial
8:50
#30 How to use JS Array Methods | JavaScript Full Tutorial
19:09
Dev Dreamer
Рет қаралды 11 М.
Easy Ways to Loop Over Objects in JavaScript
11:21
dcode
Рет қаралды 10 М.
#34 What are JS Functions? | JavaScript Full Tutorial
13:52
Dev Dreamer
Рет қаралды 13 М.
Learn JavaScript OBJECTS in 7 minutes! 🧍
7:01
Bro Code
Рет қаралды 53 М.
#22 If else Statements | JavaScript Full Tutorial
10:48
Dev Dreamer
Рет қаралды 7 М.
طردت النملة من المنزل😡 ماذا فعل؟🥲
00:25
Cool Tool SHORTS Arabic
Рет қаралды 24 МЛН