Number and Maths in Javascript | chai aur

  Рет қаралды 176,723

Chai aur Code

Chai aur Code

Күн бұрын

Visit chaicode.com for all related materials, community help, source code etc.
github.com/hit...

Пікірлер: 280
@pankajpanday6351
@pankajpanday6351 Жыл бұрын
A simple explanation that I always think about is "Math.random() sirf 0 se 1 tk random number generate krta hai 0 is inclusive, 1 is exclusive....So in this statement Math.random() * 10, the result can never be equal to 10 qki 10 lane k lie usko 1 se mulitply hona pdega jo ki possible nahi hai, to result hmesha 10 se niche hoga (it could be 9.999999) but 10 nhi hoga, or iske upr se agar aap Math.floor(Math.random() * 10) krte ho to result 0 se 9 tk koi bhi integer ho skta hai but 10 nahi, to 10 ko bhi range me include krne k lie hum usme 1 add kr dete hai.....that is if you do Math.floor(Math.random() * 11) to result [0,10] tk aaega both inclusive.....and at last isme bas aap 1 add kr doge to result [1,11] m convert ho jaega.... similarly, is concept ko max min m bhi leke jaa skte hai
@honblegaurav9917
@honblegaurav9917 2 ай бұрын
vahi to aur isne to dhang se samjhaya hi nhi aur fake smile karta rehta bus
@viholvishwassinh1709
@viholvishwassinh1709 Ай бұрын
else you can use ceil then you don't need to add 1 correct me if am wrong
@MrCaffiene
@MrCaffiene 9 күн бұрын
@@viholvishwassinh1709 if you use ceil you will never grab the min value
@benspencer7491
@benspencer7491 8 күн бұрын
1. Understanding Math.random() Math.random() generates a random decimal number between 0 and 1. This range includes 0 but excludes 1. For example, Math.random() might generate numbers like 0.234, 0.6789, or 0.999. 2. Multiplying Math.random() When you multiply Math.random() by a number, like 10, you stretch the range: Math.random() * 10 will give a random number between 0 and just below 10. This range is [0, 10), meaning it can be as low as 0 but will never reach 10 (the highest possible value is close to 9.999999...). 3. Using Math.floor() Math.floor(x) rounds down the number x to the nearest integer. So, Math.floor(Math.random() * 10) will convert the range [0, 10) to an integer range from 0 to 9. You can get 0, 1, 2, ..., up to 9, but never 10. 4. Including 10 in the Range If you want to include 10 in the range, you need to change the multiplication factor: Math.floor(Math.random() * 11) will give you a range of integers from 0 to 10. This is because you're now generating numbers in the range [0, 11), and Math.floor() will convert it to [0, 10]. 5. Shifting the Range (Adding 1) If you want the range to start from 1 instead of 0, you simply add 1 to the result: Math.floor(Math.random() * 10) + 1 will give you a range from 1 to 10. This works because now the range [0, 9] gets shifted to [1, 10]. 6. Extending to Max-Min Concept To generate a random integer between any min and max values, you use this formula: Math.floor(Math.random() * (max - min + 1)) + min. Example: To get a number between 5 and 15 (both inclusive): Math.floor(Math.random() * (15 - 5 + 1)) + 5 This simplifies to Math.floor(Math.random() * 11) + 5, giving you a random integer from 5 to 15. hope this helps.
@ayush_12ka4
@ayush_12ka4 22 сағат бұрын
Agr tu Math.floor(Math.random()*11+1) kr dega to 1-11 ke bich ayge value, 1-10 ke bich value lane ke liye Math.floor(Math.random()*10+1) Krna hoga, pata to kuch hai nahi duniya bhar ka gyan pelna hai bs
@kushagraagrawal7690
@kushagraagrawal7690 6 ай бұрын
Formula for generating random number : Math.floor(Math.random() * (total no. in the range)) + min_number For example : if you want to generate random number between 0 to 10, then min no. is 0, max no. is 10, total no. in the range is 11 ( max - min + 1), now putting to formula : Math.floor(Math.random() * (11)) + 0
@monty6393
@monty6393 11 ай бұрын
22:29 actually here , the plus one is added to include the maximum number(20) into the range .. Zero case is already handled by adding +min after it ... For example let's say the random returns 0.99999 then multiply it with 11(20-10+1).. , we will get 10.989.... take the floor value of this which will be 10 and now add it with min value which is 10 so overall answer would be 20(the ending range). That's the maximum case.. Similarly if random returns 0.0122... then everything will get 0 in the left and then adding min(10) to 0 will give us 10 which is the starting range..
@user-sn3jy7ee5k
@user-sn3jy7ee5k 8 ай бұрын
Thanks bro. I was confused at first
@chickukoshti3741
@chickukoshti3741 6 ай бұрын
still not getting
@Ali-2812
@Ali-2812 2 ай бұрын
Bravo
@shivam-kn7ec
@shivam-kn7ec 15 күн бұрын
Where is +1 in your min condition
@tech_channel110
@tech_channel110 Жыл бұрын
best man best channel best language best way of explanation on internet you are legend in explanation world
@faridullah3841
@faridullah3841 Жыл бұрын
Thank you for illuminating our learning journey, one JavaScript tutorial at a time. You're not just a teacher; you're an inspiration
@RahulSharma-wz6yv
@RahulSharma-wz6yv 7 ай бұрын
When we participate in the growth of others, we often end up growing ourselves first. You have done a lot for coders and continue to do so, which is great. I am eager to watch the complete Python course that is currently ongoing. However, I am very busy working on my clients' projects. In my remaining time, I am learning more about JavaScript to improve my knowledge. Although I already know JavaScript, learning from you is both fun and fortunate for me. Thanks for all you are doing !
@EyeGuy2766
@EyeGuy2766 15 күн бұрын
--> returns a random number between min (included) and max (excluded) function getRndInteger(min, max) { return Math.floor(Math.random() * (max - min) ) + min; } -->returns a random number between min and max (both included) function getRndInteger(min, max) { return Math.floor(Math.random() * (max - min + 1) ) + min; }
@harshkesharwani5112
@harshkesharwani5112 Жыл бұрын
At 22:26 if min =10 and max=20 then the value (Math.floor(Math.random()*(max-min +1)) ) => ensure that it will give value in the range [0,10] ..You have said 1 is added to avoid 0 but basically 1 is added to increase the range upto (10) ..if we will not add 1 it will give value in the range [0,9] .. Please clarify it ..And thanks for providing such valuable content.. Love You bhaiyya great series❤️!
@persevere08
@persevere08 Жыл бұрын
you are absolutely right, basically one is added to set the uppper limit to max value.
@rajrajeshwarsingh3119
@rajrajeshwarsingh3119 11 ай бұрын
Hey, bro in MDN docs it is clearly mentioned Math.random() returns that number that's greater than or equal to 0 and less than 1. So either you include 20 by adding 1 or exclude it by not adding 1, my suggestion is don't add 1, just go with the tradition i.e. docs. *And if you want to include 20 you have to add 1 inside(max- min + 1) not ((max-min) + 1), if you do this you'll get where we started where the value 10 will be excluded i.e. bodmass magic. *But in the video, there is a small explanation mistake at 20:08 where he @chaiaurcode says to avoid 0 you have to add 1 there i.e.(max- min + 1), if you do this only this step you'll get 0 value at some point there is a slimmest of chances because when Math.random() = 0, you will always get 0 because when you multiply anything with 0 obviously you'll get 0. So there's no point in adding "1" here because you'll get 0 at some point. Instead, he'd have added + 1 in the last equation. *Because when you look at the last equation it is correct in terms of the question where we want to include 10 and 20 as well. eg. (0.91*11) +10 = 20.01 or (0*11) +10 = 10😎😎. Hope that I've made my point. At last, JavaScript is a forgiving language so forgive it 😬😬and move on.... You can refer to the same here developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/random
@armorkinggaming1933
@armorkinggaming1933 11 ай бұрын
@@rajrajeshwarsingh3119 The formula is correct. If you want to check, type the values: min1 = 10 max1 = 20 console.log(Math.floor(0.99999 * (max1-min1 + 1)) + min1); console.log(Math.floor(0.00000 * (max1-min1 + 1)) + min1); You can see, the formula is giving correct results for boundary cases and if boundary cases are correct, it means rest of the values will also be fine.
@user-lo3hv9wb9u
@user-lo3hv9wb9u 6 ай бұрын
----- SUMMARY ----- Video 12 - Number and Maths in Javascript const score = 400 // JS auto detects it as a number const balance = new Number(100) // Using Number Function to explicitly define number in JS console.log(score) // 400 console.log(balance) // [Number: 100] Note: Number has comparatively less prototype properties (methods) than String Methods with examples: 1. balance.toString() // This converts a number into string 2. balance.toString().length // Once we convert it to String, all properties / methods of Strings are now open to us, such as length 3. balance.toFixed(2) // Used to reduce or round of to specific decimal values - Use Cases a. After calculation of GST b. In Ecommerce website 4. const otherNumber = 23.8966 otherNumber.toPrecision(3) // Output - 23.9 otherNumber = 123.8966 otherNumber.toPrecision(3) // Output - 124 otherNumber = 1123.8966 otherNumber.toPrecision(3) // Output - 1.12e+3 (exponential value) 5. const hundreds = 1000000 hundreds.toLocalString() // By default it converts into US standards hundreds.toLocalString('en-IN') // As per Indian Standards (Note: Check other formats in MDN Docs) 6. Other methods .MAX_VALUE .MIN_VALUE .MAX_SAFE_INTEGER .MIN_SAFE_INTEGER ----- Maths in JS ---- Maths library comes along with JS Methods ---- 1. Math.abs() // Converts +ve / -ve integer values to positive 2. Math.round(4.3) // Output - 4 3. Math.round(4.6) // Output - 5 4. Math.ceil(4.2) // Output - 5 (gives top value) 5. Math.floor(4.9) // Output - 4 (gives bottom value) 6. Math.min(4,3,6,8) // Output - 3 7. Math.max(4,3,6,8) // Output - 8 8. Math.random() // Gives random value between 0 & 1 in decimals Math.random() tricks ----- Math.random()*10 Math.random()*10 + 1 // This assures that values are atleast 1 & more than 1 (Math.random()*10) + 1 // To avoid any BODMAS rule miscalculation ---- Trick to randomize value between range ---- const min = 10 const max = 20 const randomValue = Math.floor((Math.random() * (max - min + 1)) + min)
@barikankitkumar
@barikankitkumar Ай бұрын
c
@benspencer7491
@benspencer7491 8 күн бұрын
chatgpt.com/share/6dd5494b-0d49-41d1-a323-e035fe57cecb
@babarshabbir2554
@babarshabbir2554 3 ай бұрын
"Excellent tutorial! Clear explanations of number and math concepts in JavaScript using Chai. Highly recommended."
@tech_channel110
@tech_channel110 Жыл бұрын
sir your ability to convey intricate JavaScript concepts in a way that's both approachable and engaging is truly commendable, making us true asset to the learning community."
@thecalgarians4597
@thecalgarians4597 7 ай бұрын
A granular detail that someone may miss while watching the video. Math.random() returns values 0 to 1 where 0 is inclusive but 1 is excluded. Overall, mind blowing series thus far. I'm binge watching :)
@babarshabbir2554
@babarshabbir2554 3 ай бұрын
"Excellent overview of number & math concepts in JavaScript! Clear explanations and examples. #js"
@kanhucharanpradhan6066
@kanhucharanpradhan6066 Жыл бұрын
i have already watched ur old javascript series bt this one is awesome
@viraljain9197
@viraljain9197 Ай бұрын
Thank you to Hitesh Sir for making such an awesome video! 🙌🎥 Brushing up on my JS knowledge 🧠
@yosayaan7013
@yosayaan7013 3 ай бұрын
You are the best Teacher i have ever had
@akashthoriya
@akashthoriya Жыл бұрын
Explanation is to the point 🔥 toPrecision and Math.random() part was great
@sayandipbhattacharya3097
@sayandipbhattacharya3097 6 ай бұрын
Hum isse formula ko use karke ek simple otp generator bana skte jisse understanding or clear hogi Hum bas agr range ko jo min or max likthe hai usse agr hum me min = 100000 and max me max = 999999 krde to hume 6 digt OTP ka range mil jata hai. Principle ekdam same hai bas range ko increase kar do. Example: function Otp() { let min = 100000 let max = 999999 console.log(Math.floor(Math.random() * (max - min + 1) + min)); } Otp(); Try kar ke dekho or ache se samjh ajyga Math.random with range ka case.
@tech_channel110
@tech_channel110 Жыл бұрын
keep providing us such an amazing lectures May you live long life love from Pakistan
@barmoonz9769
@barmoonz9769 4 ай бұрын
sir your javascript series just became a game changer of my programming experience❤
@jrahul42
@jrahul42 Ай бұрын
Nice video concept clear about numbers and math thanks
@boomaboom6458
@boomaboom6458 11 ай бұрын
G sir my nay pichla assesment kiya string kay methods ka bahut kuch sikhnay ku mila thank you
@ankittiwari3421
@ankittiwari3421 Жыл бұрын
sir ap ki padani ka alg style pura cosept clear ho jata h
@harshitatripathi2185
@harshitatripathi2185 Ай бұрын
console.log((Math.random()*(max-min))+min); it will also work.
@malaikaishfaq2717
@malaikaishfaq2717 Жыл бұрын
literally you're savour i singed up for ibm Frontend development on crousera although that's expensive and paid course but cloud not understand anything and came back to this series
@suryanshjain4739
@suryanshjain4739 Жыл бұрын
Amidst these tough days of my life ,your videos are keeping me calm and sane....your voice is really soothing and the way you explain is impeccable
@yogeshkumarpatil591
@yogeshkumarpatil591 8 ай бұрын
Thank you for making such a beautiful javascript tutorial. Because You teach the actual javascript which is necessary for actual production development need. Very Very thank you. I will share your channel as much as possible to everyone. I really like your teaching style and I aslo need that type of javascript teacher. God bless you.
@workspaceronnie8283
@workspaceronnie8283 10 ай бұрын
I just started this course so far It have helped me a lot looking forward to know more about js. Bhaiya one humble request to make a complete video on how to approach companies .
@2amCoder
@2amCoder 7 ай бұрын
const min=10; const max=20; const range=max-min; const rand=(range+1)*randomNum + min ; //gives any random number from min to max
@TradingTales
@TradingTales 6 ай бұрын
Nice constant
@045shots
@045shots Күн бұрын
Haan JI Aaj Aapke 400k Subscriber Done Hote Hue. Congretssss🥂🍾
@HimanshuMeena-hi9nq
@HimanshuMeena-hi9nq 3 ай бұрын
Formula for generating random number : Math.floor(Math.random() * (total no. in the range)) + min_number For example : if you want to generate random number between 1 to 6, then min no. is 1, max no. is 6, total no. in the range is 6 ( max - min + 1), now putting to formula : Math.floor(Math.random() * (6)) + 1 this could be used for ludo dice
@zohaibalishah91
@zohaibalishah91 4 ай бұрын
Sir You Are Just Awesome
@user-gy3bf1pe9y
@user-gy3bf1pe9y 11 ай бұрын
you are truly a indian inspiration mentor . thank you for serving india and across the world through your talent
@vivektiwari6200
@vivektiwari6200 Жыл бұрын
The things you are charity in free, can't be got in paid too. thanks a lot sir.
@sounaksaha1455
@sounaksaha1455 Жыл бұрын
Sir, aise hi aap pls roz video dala kijiye, phir padhne mein bhi maza aayega...... Thanks a lot for your top notch hindi tutorials
@user-mo1sy5ck7r
@user-mo1sy5ck7r 6 ай бұрын
best Series ALL OVER UNIVERSE, thank you Sir 🙏
@Pawankumar-i8c
@Pawankumar-i8c Ай бұрын
thank you so much sir for this lecture
@shashankkumarpandey4184
@shashankkumarpandey4184 8 ай бұрын
Amazing video, Thank you sir
@webStream258
@webStream258 6 ай бұрын
Great Man (Salute to you for providing such an amazing content for us ) Thanks Btw following you from Pakistan 😍😍😍
@rishineupane
@rishineupane 6 ай бұрын
Thank You for explaining very clearly and precisely
@WaqasKhanDurrani
@WaqasKhanDurrani Ай бұрын
Great explanation
@user-rl3bq1um1f
@user-rl3bq1um1f 9 ай бұрын
Hi dear Hitesh Sir, I liked your way of teaching, because you are not taking long time to explain any topic. I watched and visit other youTube channel instructor who have 1M, 2M, 5M. but they all are taking so long time to give less knowledge and understanding to us. I don't want to publish these name but they are copying you in this paid cources, and session. it's my bad, I came here after mess around/ wasting my time and energy there. And literally your video quality and editing,animation, voice quality it's superb. I am requesting for DSA from you. please provide us. best DSA series. i will be wait for the same. and thank you for providing such a nice content in free of cost. you are great person and my ideal person also.
@thetech17
@thetech17 10 ай бұрын
Awesome Sir Thank you👍
@mrHock86
@mrHock86 3 ай бұрын
continuining day 3. Amazinng content sir ji.
@sahilbutala6911
@sahilbutala6911 9 ай бұрын
The way are you teaching ❤️✨✨,i never seen ever my life... Thanks for this series sir
@BioChemAcademy
@BioChemAcademy 8 ай бұрын
I was really having a bad day, but what make me calm and relax these days are watching your videos, thank you so much for everything sir you are an inspiration
@sunilrajputhrathod6761
@sunilrajputhrathod6761 5 күн бұрын
I think that's not chai it visible something something🍾🍾 😉🤣🤣 by the way tqx Hitesh sir deeply and easily understating ur classes
@Instrumentation010
@Instrumentation010 9 ай бұрын
As usual enjoying this extra ordinary explanation of topics..
@user-ud6qx2dv8y
@user-ud6qx2dv8y 2 ай бұрын
thanks for sharing quality content
@ApexModi6000
@ApexModi6000 11 ай бұрын
maine pehle padha hua tha JavaScript but ye sab nahi pata tha Thank You sir for this amazing course!!
@shakib1010
@shakib1010 Жыл бұрын
I find this tutorials are so relaxing. 😀 Great playlist.
@universalbeats.....8242
@universalbeats.....8242 5 ай бұрын
Best series ❤
@shaileshhacker
@shaileshhacker Жыл бұрын
0:22 I thought... It was beer🤣🤣🤣
@manigupta1357
@manigupta1357 6 ай бұрын
😂😂
@abhinavgupta4866
@abhinavgupta4866 Жыл бұрын
The best thing I'm seeing in whole week.
@kazitanim007
@kazitanim007 8 ай бұрын
Amazing teaching skill brother, keep up the good work. Also please make a video on how to get a job with basic HTML, CSS & JS while we keep learning.
@akroyalmaker
@akroyalmaker 5 ай бұрын
1 no. sir ji💯💯
@manthanharale3877
@manthanharale3877 Жыл бұрын
frist if all thankyou so much sir, and i think our jen-z are very lucky bicos of we have such kind of teachers.
@anonymous_q_ho1245
@anonymous_q_ho1245 8 ай бұрын
Thanks for this wonderful contain 😊 and the way u teach is really appropriate Last line code was little complex but that you you give a good example Although I think I can use Math.ceil isnted of Math.floor But I do understand why did u used this example 😊
@manthanharale3877
@manthanharale3877 Жыл бұрын
the formula was very intresting and this class was very memorebel
@krishnavamsi1126
@krishnavamsi1126 3 ай бұрын
thanks bro learnt new things
@suyashjain3223
@suyashjain3223 3 ай бұрын
In case someone has doubt in generating the random number between min and max value. //Getting a random integer between two values console.log(Math.floor(Math.random() * (max-min)) + min)// The maximum is exclusive and the minimum is inclusive console.log(Math.floor(Math.random() * (max - min + 1)) + min)// The maximum is inclusive and the minimum is inclusive
@Arindam_1729
@Arindam_1729 Жыл бұрын
Thanks sir! Keep providing such videos!! This is Pure Gem!
@ahmedbaig8543
@ahmedbaig8543 9 ай бұрын
"🌟 Great content, Chai aur Code! Your videos are both informative and engaging. I've been learning a lot from your tutorials, and the way you explain complex concepts makes coding more accessible. Keep up the fantastic work! 👏💻 #LearningFromTheBest #ChaiaurCode"
@pranjalgogoigaming-1209
@pranjalgogoigaming-1209 9 ай бұрын
Awesome video of Math object
@manemanoj3068
@manemanoj3068 Жыл бұрын
Excellent,useful content Bhai..
@richa-singh09
@richa-singh09 4 ай бұрын
well explained ...... thank you so much
@Utsav_Viradiya
@Utsav_Viradiya Жыл бұрын
At 16:20, you mentioned that Math.random() always yields results between 0-1 (both inclusive). However, according to MDN, Only 0 is inclusive, not 1. Please clarify it. BTW, thanks for making these lovely videos. Keep it up!
@chaiaurcode
@chaiaurcode Жыл бұрын
From 0 to ranging 1. It’s a mathematical terms, tends to 1
@armorkinggaming1933
@armorkinggaming1933 11 ай бұрын
If you want to check, type the values: min1 = 10 max1 = 20 console.log(Math.floor(0.99999 * (max1-min1 + 1) + min1)); console.log(Math.floor(0.00000 * (max1-min1 + 1) + min1)); You can see, the formula is giving correct results on boundary cases and if boundary cases are correct, it means rest of the values will also be fine.
@Bring_Up_Change
@Bring_Up_Change 6 ай бұрын
Hello sir...main sochra tha ki agar aap Javascript ke concepts padhaye with live implementation of each in the realtime projects. Sir, this will really help the students as they will be knowing what will be the purpose of each topic.
@Raj10185
@Raj10185 11 ай бұрын
Nice explanation of Math.random . i really like it
@abbykrm
@abbykrm Жыл бұрын
Thanks Hitesh it's really helpful to revise the basics ❤❤
@ZiaUrRehman-pv8mw
@ZiaUrRehman-pv8mw 9 ай бұрын
OutStanding Explaination💖💖💖
@nikhatansari3310
@nikhatansari3310 10 ай бұрын
Thank you so much sir 😊
@livecodealone
@livecodealone 4 ай бұрын
Sir chai aur code is best
@surajrao123
@surajrao123 10 ай бұрын
sir aapki sari video bhot helpful hain, thank you. sir vo sach me chai tha kya😄😄
@manojgyanwali2434
@manojgyanwali2434 4 ай бұрын
Thank you for this series
@manthanharale3877
@manthanharale3877 Жыл бұрын
my every daut was clear and now iam good in numbers and math
@Sarvesh_Coder
@Sarvesh_Coder Жыл бұрын
Are garda hai ye wala video, har baar ki tarah ji😀
@PriyaSingh-ve9lf
@PriyaSingh-ve9lf 6 ай бұрын
u made javascript easy for me
@aakashshukla6838
@aakashshukla6838 4 ай бұрын
26/04/2024 - 12/51 video of this amazing playlist
@jiteshtechbeast
@jiteshtechbeast Жыл бұрын
This man is ❤❤❤
@RG_official.
@RG_official. 10 ай бұрын
Really like the playlist.
@hiphop861
@hiphop861 9 ай бұрын
Thank you ❣🥰🥰
@muneebshabbir9696
@muneebshabbir9696 11 ай бұрын
thank you your videos make easy js for me
@BindassMHV
@BindassMHV 6 ай бұрын
Math.floor(Math.random()*(max-min+1))+min This is the formula for max and min range. 👍Like Please
@_tobecontinued
@_tobecontinued 4 ай бұрын
Gazab :)
@AmanKumar-un1he
@AmanKumar-un1he 8 ай бұрын
We would really appreciate a series on DSA with JS.
@DostMuhammad-sd6rx
@DostMuhammad-sd6rx 4 ай бұрын
amazing keep it up
@pratibhaverma2063
@pratibhaverma2063 7 ай бұрын
Difference b/w MAX_VALUE and MAX_SAFE_INTEGER
@aryangaur228
@aryangaur228 Жыл бұрын
Thanks for this amazing tutorial sir!
@iamkmsyed
@iamkmsyed 7 ай бұрын
Thanks Sir
@akashbhosale3634
@akashbhosale3634 3 ай бұрын
gud one
@sagarbhavel8266
@sagarbhavel8266 9 ай бұрын
this video is really helpfull.
@user-dy8hk5xj3r
@user-dy8hk5xj3r 10 ай бұрын
good sir
@udaypratapsingh8923
@udaypratapsingh8923 Жыл бұрын
Thanks sir
@RahulEngineer_1
@RahulEngineer_1 24 күн бұрын
Sir, in Math.random() 0 is inclusive and 1 is exclusive so the random value always be between 0 to 1 but it could not be 1. Please correct me if I am wrong.
@taashukumar1155
@taashukumar1155 11 ай бұрын
maja aa gya chicha jaan
@rishisaxena4219
@rishisaxena4219 8 ай бұрын
var temp = new Number(4000); var chk=new Number(temp); console.log(chk); console.log(typeof(chk)); chk = 1000; console.log(chk); console.log(typeof(chk)); Sir iss code me phle chk variable ka type object tha and usko 1000 se assign krne baad number ho gaya. Aysa kyu?
@user-bh6ic4bm3m
@user-bh6ic4bm3m 6 ай бұрын
Shukriya,
@vishu3766
@vishu3766 Жыл бұрын
Rom Rom Sir Ji
@beautyspot3929
@beautyspot3929 Жыл бұрын
kia baat ha sir ap ke 😍
Date and time in depth in javascript | chair aur #javascript
18:13
Chai aur Code
Рет қаралды 165 М.
Array in Javascript | chai aur #javascript
18:55
Chai aur Code
Рет қаралды 209 М.
Люблю детей 💕💕💕🥰 #aminkavitaminka #aminokka #miminka #дети
00:24
Аминка Витаминка
Рет қаралды 1,3 МЛН
Magic or …? 😱 reveal video on profile 🫢
00:14
Andrey Grechka
Рет қаралды 59 МЛН
Random number generator in JavaScript 🎲【4 minutes】
4:01
Logic Building in Programming - 5 Proven Strategies (2024) 🔥
13:01
CodeWithHarry
Рет қаралды 401 М.
Strings in Javascript | chai aur #javascript
22:44
Chai aur Code
Рет қаралды 205 М.
How much HTML, CSS and JavaScript is Enough to get a Job 🔥
14:32
CodeWithHarry
Рет қаралды 250 М.
Global and local scope in javascript | chai aur #javascript
9:37
Chai aur Code
Рет қаралды 120 М.
How to build logics in programming
10:04
Chai aur Code
Рет қаралды 361 М.
🔥 JS Practice 1: Master JavaScript Essentials with Fun Mini Projects! 💡
45:13
Sheryians Coding School
Рет қаралды 271 М.
How does javascript execute code + call stack | chai aur #javascript
26:12
Data types of javascript summary | chai aur #javascript
18:02
Chai aur Code
Рет қаралды 180 М.