00:00 What he did in back days 00:59 That one interview question 01:30 The answer 02:20 Object properties inside Browser Console 03:35 Object.getOwnPropertyDescriptor() method 04:55 Why value of Math.PI cannot be changed 05:33 Passing the parameters inside the method 06:10 Printing value of the parameters 06:40 Why value of PI is not changable 07:30 Declaring own object 09:00 Cheking Object.getOwnPropertyDescriptor() method of our created object 10:20 Define your own property 11:28 Printing own object's descriptor 12:18 Trying to iterate the object usng loop 13:45 Changing the parameters to solve the error 14:20 Code kaise fatega 🙄 15:00 Code ko repair kiya gaya 15:40 If you don't want some values to be iterated of the object 16:06 There's no error. (Comment if you caught 🧐 that) 16:30 Searching Google for the solution Thank You 😍
Wrapping up this series, I've gained a comprehensive understanding of JavaScript thanks to your guidance. Your teaching style on RUclips is undoubtedly the most effective way I've encountered to learn coding. I appreciate the clarity and depth you bring to each topic
This channel is one of the best teaching for javascript in a very simple and efficient way I found on youtube,please Keep making more videos and projects, and thanks for sharing your knowledge so well
i know it not changing the value of Math.PI directly but get works done, let pi = Math.PI const whole = Math.floor(pi) console.log(Math.PI); // 3.141592653589793 console.log(Math.round(Math.PI)); // 3 console.log(Math.floor(Math.PI)); // 3 console.log(Math.ceil(Math.PI)); // 4
Time complexity to ye hota hai ki ek algorithm jo tune banayi hai vo execute hone mai kitna time le rahi hai . Vahi space complexity ye hoti hai ki Teri algorithm memory mein kitna space le rhi hai
I want to extend my warmest wishes to you. Your dedication, passion, and commitment to educating and inspiring students are truly admirable. You've not only imparted knowledge but also ignited a love for learning in so many young minds. May your journey as a teacher continue to be filled with success, joy, and countless moments of fulfillment.
Learn new concept of object properties it is very full for interview perspective and also in the projects. thank you sir for this lovely JavaScript series waiting for the React Js series
Sir !!!! Ap tu hamy a + b sy seeda Software Engineer banany waly hai😂❤❤ Thanks Sir ❤❤ Agr yeh series na hote tu hum abe tak pattern print ke loop me lagy hoty 😊
Object.getOwnPropertyDescriptor(Math,"PI",{ writable : true } ) console.log(Math.PI=5) ; -------> 5 and it change the value from 3.14 to 5 or whatever you want
It will not change the value of PI, its just temp logging value assigned to it, infact if you dont even add Object.getOwnPropertyDescriptor(Math,"PI",{ writable : true } ), the result will be 5 only
console.log(Math.round(Math.floor(Math.PI))) // output 3 console.log(Math.round(Math.ceil(Math.PI))) // output 4 by using above method I am able to change the PI value if you could lemme know did i did it correct of not
You have to change the Math object's property value !! Like: console.log(Math.PI) // should return '4' on its own without using floor, round or ceil It cannot be done unless we somehow enable 'writable = true' for the 'PI' property.
Your efforts are just awe-some i mean even if it takes a lot of time to research about topics in depth you keep up the dedication which helps us too in learning ❤
The console.log function prints the values to the console but does not change them. Math.ceil(Math.PI) does not change the value of Math.PI; it only uses it to compute the result.
In summary, the attempts to modify Math.PI will not succeed because properties of the Math object, such as Math.PI, are read-only and cannot be modified.
sir like in this video you told soo much deep thing which takes a lot of exp to know but how and the other person who you interviewed knew that like there is no course about these things and most probabily both of you are not on mdn docs all the time so how you got to know it these kind of this make us feel how less we know which create exitement but lack of knowladge and low confidence and also was not your question a luck based question it is not necessary that any other candiadate have never faced these type of things so he did't knew but so you set this thing as a criteria that the one who know it is a good dev too plzz reply @@chaiaurcode
Rameshwar Nalawade I want to create a common object in JavaScript and dynamically include different JavaScript files based on the page that is open. How I can achive it.
00:00 What he did in back days
00:59 That one interview question
01:30 The answer
02:20 Object properties inside Browser Console
03:35 Object.getOwnPropertyDescriptor() method
04:55 Why value of Math.PI cannot be changed
05:33 Passing the parameters inside the method
06:10 Printing value of the parameters
06:40 Why value of PI is not changable
07:30 Declaring own object
09:00 Cheking Object.getOwnPropertyDescriptor() method of our created object
10:20 Define your own property
11:28 Printing own object's descriptor
12:18 Trying to iterate the object usng loop
13:45 Changing the parameters to solve the error
14:20 Code kaise fatega 🙄
15:00 Code ko repair kiya gaya
15:40 If you don't want some values to be iterated of the object
16:06 There's no error. (Comment if you caught 🧐 that)
16:30 Searching Google for the solution
Thank You 😍
❤️❤️
Aapki explain krne ki jo saily haii... Bemisal haii❤❤❤
kisko kahani yo me aapane ne bahut kuch sikhaya hai ... Dhanyawad aapake is behatrin Prayas ke liye .... !!!😇
Wrapping up this series, I've gained a comprehensive understanding of JavaScript thanks to your guidance. Your teaching style on RUclips is undoubtedly the most effective way I've encountered to learn coding. I appreciate the clarity and depth you bring to each topic
19:00 itna taaane sunne ke baad subscribe kr diyaa finally 😄😄
I have never heard of this, Totally new for almost all the viewers.
This channel is one of the best teaching for javascript in a very simple and efficient way I found on youtube,please Keep making more videos and projects, and thanks for sharing your knowledge so well
huge amount of love for this course
very deep knowledge about object i saw here..Thankyou sir..
Thankyou for this. you are the best. padhane ki style bahut achi h and hindi me hai so boar bhi nhi hote,
full detailed video thank u sir for making study more easy
i know it not changing the value of Math.PI directly but get works done,
let pi = Math.PI
const whole = Math.floor(pi)
console.log(Math.PI); // 3.141592653589793
console.log(Math.round(Math.PI)); // 3
console.log(Math.floor(Math.PI)); // 3
console.log(Math.ceil(Math.PI)); // 4
content esa bnaao ki 4 log bole 40 logo se pdh kr bhi esa gyaan ni mila toh ye sirf hum 4 tk hi kyun hai, mtlb share krna toh bnta hai 🌹🌹
This series is actually depicts the true meaning NEVER JUDGE THE BOOK BY ITS COVER,,,,,,, hats off
sir g.....
Best ever channel for JavaScript learners.
Sir, i still cant change it to 5
After doing all this, it works when doing log(Math.PI=5), but not when doing Math.PI=5, then logging it.
Please Look
Today I've learnt something new that I never thought of.
Love this Series. And lot of love for Hitesh Sir.
Mind full hogya ha bs kr b itni video aik din main😂. 😮❤❤
From Mirpur Azad kashmir.
kashmir gulam kab tha bhai
19:27 smile in pain🙂
Sir today I realised that your channel is best channel ❤
Thank you so much 😀
x = Math.ceil(Math.PI)
4
👏
It is correct, but it is not changing the actual value of PI to 4, you've just used ceil function to round up to the nearest integer
In this approach ,you can't make the value whatever you want.
5:33 look at here carefully if you looking for ethical hacking part think we can do set xss attack here and this too 10:15
dear sir, plz explain time and space complexity in any language , we are very confuse on this topic plz sir . your explanation helps us a lot...🙋🙏🙏
Time complexity to ye hota hai ki ek algorithm jo tune banayi hai vo execute hone mai kitna time le rahi hai .
Vahi space complexity ye hoti hai ki Teri algorithm memory mein kitna space le rhi hai
@@PradeepSharma-lx6im Dhanywaad
Math.ceil(Math.PI)) = 4
....
Aise v to 4 kar sakte h 🤔🤔
I want to extend my warmest wishes to you. Your dedication, passion, and commitment to educating and inspiring students are truly admirable. You've not only imparted knowledge but also ignited a love for learning in so many young minds. May your journey as a teacher continue to be filled with success, joy, and countless moments of fulfillment.
Object.defineProperty(obj, "prop", { })
sir if we I use Math.ceil(Math.PI) then it will be 4. Can it be Ans?
Thank you so much hitesh sir, series khatm kar li h almost,loved your content,keep posting 🎉
.getOwnPropertyDescriptor(Math, "PI")
.defineProperty(chai, "name", {
writable:
enumerable:
})
.defineProperties()
Its my day 26 of learning javascript from you. Thank you so much for making that top notch series
happy to know there is an indian developer which is making noise in youtube and shining like a pole star to give us direction.
I am watching this while having my chai 🙂 .Thanks for sharing ..this is very helpful stuff as I am preparing for my interviews 👍
Thank you so much sir for providing such a premium content for free ❤
kya baat h sir 🎉🎉aaj puri form me aa gye..
best Series ALL OVER THE UNIVERSE, thank you Sir 🙏
Yeh couse krka esa mehsoos ho rha ha jesa ab sa hum bi Javascriot ka bht bara geyani ha
thanks for behind the scene explanation
Object.getOwnPropertyDescriptor( obj, "prop") method of our created object
Thanx alot for such lovely videos
Hitesh ji apke tane sunkar maine apke channel ko subscribe kar diya hai and thanks for the cheezo ko under the hood jakar samjhane ke liye
"Chai aur Code, you've made JavaScript learning so enjoyable that it doesn't feel like learning at all!"
Great, awesome ❤❤ I never couldn't learn from others, which is I learn from this video
Learn new concept of object properties it is very full for interview perspective and also in the projects. thank you sir for this lovely JavaScript series waiting for the React Js series
about to complete whole series and enjoying this
thank you hitesh sir for this best series
sir agar hum object ko hi freeze krh de??
Sir please make a tutorial on Angular as well.. 🙏
Sir !!!!
Ap tu hamy a + b sy seeda
Software Engineer banany waly hai😂❤❤
Thanks Sir ❤❤
Agr yeh series na hote tu hum abe tak pattern print ke loop me lagy hoty 😊
Thank you sir for these depth .
Object.getOwnPropertyDescriptor(Math,"PI",{ writable : true } )
console.log(Math.PI=5) ; -------> 5
and it change the value from 3.14 to 5 or whatever you want
It will not change the value of PI, its just temp logging value assigned to it, infact if you dont even add Object.getOwnPropertyDescriptor(Math,"PI",{ writable : true } ), the result will be 5 only
console.log(Math.round(Math.floor(Math.PI))) // output 3
console.log(Math.round(Math.ceil(Math.PI))) // output 4
by using above method I am able to change the PI value if you could lemme know did i did it correct of not
You have to change the Math object's property value !!
Like:
console.log(Math.PI) // should return '4' on its own without using floor, round or ceil
It cannot be done unless we somehow enable 'writable = true' for the 'PI' property.
Thanks A Lot Sir ❤❤
Thank you sir 🙏❤
Your efforts are just awe-some i mean even if it takes a lot of time to research about topics in depth you keep up the dedication which helps us too in learning ❤
thank you so much for a video of this much indepth knowledge ❤
Can't we use Math.ceil(3.14) to change this constant value of PI 😅
Your explanation is really too good 😊👍😊
can anyone plz tell ki math.pi ki value hum change kr skte hai ya nahi kyuki kisi aur ke object ki writable property ka acces humare pass toh nahi hai
let x = Math.PI
console.log(Math.ceil(x))
//otherway
let b = Math.ceil(Math.PI)
console.log(b)
Aaj to barish ho rha sir ji 😉
😮😮amazing 👏 😍
very informative
console.log(Math.ceil(Math.PI)); [Answer will be 4]
The console.log function prints the values to the console but does not change them. Math.ceil(Math.PI) does not change the value of Math.PI; it only uses it to compute the result.
Thank you sir for such amazing tutorials
sir so nice of you....
Chai to honi chahiye ☺️
Thankyou Sir😊
Great👍👍👍👍
jab padhane wala itna tagda ho to padhne me alag hi maja aata hai.
How is your voice so clear ?
also make a PLAYLIST on making videos with Clear Voice plzz
kar liya subscribe sir ji.
Thank You Sir
Thank You Sir ❤❤
In summary, the attempts to modify Math.PI will not succeed because properties of the Math object, such as Math.PI, are read-only and cannot be modified.
sir aap plzzz core JS se bhot saare projects krwaadijiye taaki hm logo k foundation mzbuuuut hojaaye
Vo b krwa denge, bs linkedin pe aapke share ke notifications nhi aa rhe
@@chaiaurcode😂😂😂😂 Emotional damage sir 😂😂😂
@@chaiaurcodeSir aap bhutha acha explain arte ho Thanks 🙏
sir like in this video you told soo much deep thing which takes a lot of exp to know but how and the other person who you interviewed knew that like there is no course about these things and most probabily both of you are not on mdn docs all the time so how you got to know it these kind of this make us feel how less we know which create exitement but lack of knowladge and low confidence and also was not your question a luck based question it is not necessary that any other candiadate have never faced these type of things so he did't knew but so you set this thing as a criteria that the one who know it is a good dev too plzz reply
@@chaiaurcode
Great topic sir
tthanks sir jii
people will understand the value when they will stuck in real life project.
👍 nice teaching sir
but u didnt change the value of PI.
sir aapne kha thaa mini-projects on particular topic p krwaunga taaki foundation ambuja cement bnjaaye hmara wo kb aayyega???
In the beginning , I was thinking about Math.ceil(Math.PI). 😀😀😀
cool sir
guru ji is great
Rameshwar Nalawade
I want to create a common object in JavaScript and dynamically include different JavaScript files based on the page that is open. How I can achive it.
Thank you
thank you sir
Amazing
thank you so much sir for ur effort and dedication to the students who want to learn in a simple way...❤❤
Sir saas toh lene dijiye , ajj toh ek baad ek dhamaka hora hai
lagta hai sir ne ajj oppenheimer movie dekh li
Kl hi dekh ke aaya tha 😂😂
Very cool
thankyou sir
Great
Always good video
those who don't get the answer we can't change the math.pi as it is not writable
Thanks
Dhanyawad guruji 🙏
sir apne to bombs giradi channel pe achanak 😂
Kbhi kbhi ye b krna chahiye
osm video sir
thankyou
Bhai m arts stream se apne experience ye btaao arts walo k liye career dekhna chiye esme😊