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
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.
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? 🙂👍
@@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.
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 🙂👍
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?
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
You explain easy 🎉, thank you, i need this kind of teacher.
Thank you sir for making the video on javascript 👍
Hey Vaibhav, thank you for watching! 🙂👍
Thank you, I loved this video. Coupled with some docs on MDN, it's very very good.
thank you sir
quick recap, nice
🎉❤ 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
Incredible tutorials. What vs code theme is that?
You make JS easier than easy
Thanks Rema, really glad you’re finding them useful and easy to understand. Practice and repetition is the key 👍
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.
Instead, I would write something like
Math.random().toFixed(1) * 9 + 1
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? 🙂👍
@@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.
✅
Hope u will have a series convert HTML CSS to a Website from Dribble Design
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 🙂👍
@@DevDreamer i mean , more viewer very like your series convert from Dribble , it beautiful . hope u make more video about this
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?
let is for the variables(whose values can be changed) however, const is to declare constants(whose values can never change)