Now you know Objects in Javascript | chai aur

Поделиться
HTML-код
  • Опубликовано: 28 ноя 2024

Комментарии • 175

  • @SuryaKarigar
    @SuryaKarigar Год назад +35

    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 😍

  • @endgame3842
    @endgame3842 Год назад +18

    Aapki explain krne ki jo saily haii... Bemisal haii❤❤❤

  • @dhumdeogobare1891
    @dhumdeogobare1891 Год назад +5

    kisko kahani yo me aapane ne bahut kuch sikhaya hai ... Dhanyawad aapake is behatrin Prayas ke liye .... !!!😇

  • @HanzlaAsam
    @HanzlaAsam 7 месяцев назад +6

    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

  • @MoteeullahAzmi
    @MoteeullahAzmi 9 месяцев назад +2

    19:00 itna taaane sunne ke baad subscribe kr diyaa finally 😄😄

  • @Dev-Phantom
    @Dev-Phantom 10 месяцев назад +3

    I have never heard of this, Totally new for almost all the viewers.

  • @abhijitchanda4927
    @abhijitchanda4927 10 месяцев назад +3

    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

  • @markiV643
    @markiV643 15 дней назад +1

    huge amount of love for this course

  • @naveengupta157
    @naveengupta157 Год назад +1

    very deep knowledge about object i saw here..Thankyou sir..

  • @jagdambadubey6956
    @jagdambadubey6956 5 месяцев назад +1

    Thankyou for this. you are the best. padhane ki style bahut achi h and hindi me hai so boar bhi nhi hote,

  • @pabitrakc5670
    @pabitrakc5670 Месяц назад +1

    full detailed video thank u sir for making study more easy

  • @ganeshchougale9558
    @ganeshchougale9558 9 месяцев назад +2

    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

  • @Aniket_0314
    @Aniket_0314 Год назад +10

    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 🌹🌹

  • @sharoonshahzad178
    @sharoonshahzad178 5 месяцев назад +1

    This series is actually depicts the true meaning NEVER JUDGE THE BOOK BY ITS COVER,,,,,,, hats off
    sir g.....

  • @ahsanali8237
    @ahsanali8237 11 месяцев назад

    Best ever channel for JavaScript learners.

  • @krishna.vineet
    @krishna.vineet 8 месяцев назад +4

    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

  • @NOT_TON_Fan
    @NOT_TON_Fan Год назад +2

    Today I've learnt something new that I never thought of.

  • @amit16_01
    @amit16_01 6 месяцев назад

    Love this Series. And lot of love for Hitesh Sir.

  • @Tayyab_Raja
    @Tayyab_Raja Год назад +1

    Mind full hogya ha bs kr b itni video aik din main😂. 😮❤❤
    From Mirpur Azad kashmir.

  • @vickyacharjee936
    @vickyacharjee936 8 месяцев назад +2

    19:27 smile in pain🙂

  • @singhkr
    @singhkr Год назад +3

    Sir today I realised that your channel is best channel ❤

  • @ck0024
    @ck0024 Год назад +7

    x = Math.ceil(Math.PI)
    4

    • @deadlylive_gaming7154
      @deadlylive_gaming7154 8 месяцев назад +1

      👏

    • @shifteditz06
      @shifteditz06 23 дня назад +1

      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

    • @rameshwarmangal3971
      @rameshwarmangal3971 17 дней назад

      In this approach ,you can't make the value whatever you want.

  • @nigampatel6383
    @nigampatel6383 8 месяцев назад +1

    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

  • @mrgtxgamerz1
    @mrgtxgamerz1 Год назад +9

    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...🙋🙏🙏

    • @PradeepSharma-lx6im
      @PradeepSharma-lx6im Месяц назад

      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

    • @mrgtxgamerz1
      @mrgtxgamerz1 Месяц назад

      @@PradeepSharma-lx6im Dhanywaad

  • @anupammishra2891
    @anupammishra2891 6 месяцев назад +3

    Math.ceil(Math.PI)) = 4
    ....
    Aise v to 4 kar sakte h 🤔🤔

  • @Rajveer__singhhhh
    @Rajveer__singhhhh Год назад +3

    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.

  • @preetamdas29
    @preetamdas29 16 дней назад

    Object.defineProperty(obj, "prop", { })

  • @m_sahoo12
    @m_sahoo12 2 месяца назад +1

    sir if we I use Math.ceil(Math.PI) then it will be 4. Can it be Ans?

  • @abhinavsingh-qu6hv
    @abhinavsingh-qu6hv 11 месяцев назад

    Thank you so much hitesh sir, series khatm kar li h almost,loved your content,keep posting 🎉

  • @jointheamnaofficial
    @jointheamnaofficial 2 месяца назад

    .getOwnPropertyDescriptor(Math, "PI")
    .defineProperty(chai, "name", {
    writable:
    enumerable:
    })
    .defineProperties()

  • @technoyash2970
    @technoyash2970 Год назад +1

    Its my day 26 of learning javascript from you. Thank you so much for making that top notch series

  • @Khedhar108
    @Khedhar108 Год назад

    happy to know there is an indian developer which is making noise in youtube and shining like a pole star to give us direction.

  • @tejashrishirol3399
    @tejashrishirol3399 Год назад

    I am watching this while having my chai 🙂 .Thanks for sharing ..this is very helpful stuff as I am preparing for my interviews 👍

  • @surajpadihar5027
    @surajpadihar5027 Год назад +1

    Thank you so much sir for providing such a premium content for free ❤

  • @sksk-vm3rp
    @sksk-vm3rp Год назад

    kya baat h sir 🎉🎉aaj puri form me aa gye..

  • @RagSingh-e2e
    @RagSingh-e2e 9 месяцев назад

    best Series ALL OVER THE UNIVERSE, thank you Sir 🙏

  • @businessmanji2445
    @businessmanji2445 27 дней назад

    Yeh couse krka esa mehsoos ho rha ha jesa ab sa hum bi Javascriot ka bht bara geyani ha

  • @jrahul42
    @jrahul42 3 месяца назад

    thanks for behind the scene explanation

  • @preetamdas29
    @preetamdas29 16 дней назад

    Object.getOwnPropertyDescriptor( obj, "prop") method of our created object

  • @prashantsingh5142
    @prashantsingh5142 Год назад +1

    Thanx alot for such lovely videos

  • @SatishSinghSigma
    @SatishSinghSigma 5 месяцев назад

    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

  • @BitFire007
    @BitFire007 8 месяцев назад

    "Chai aur Code, you've made JavaScript learning so enjoyable that it doesn't feel like learning at all!"

  • @kaushalTechFun
    @kaushalTechFun Год назад

    Great, awesome ❤❤ I never couldn't learn from others, which is I learn from this video

  • @abhihirwani4403
    @abhihirwani4403 Год назад

    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

  • @nikhilsethi2781
    @nikhilsethi2781 Год назад

    about to complete whole series and enjoying this
    thank you hitesh sir for this best series

  • @m-series719
    @m-series719 21 день назад

    sir agar hum object ko hi freeze krh de??

  • @Mikeforu
    @Mikeforu 5 месяцев назад

    Sir please make a tutorial on Angular as well.. 🙏

  • @hizarkhan_0
    @hizarkhan_0 8 месяцев назад

    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 😊

  • @rendevous9253
    @rendevous9253 11 месяцев назад

    Thank you sir for these depth .

  • @WebQrious
    @WebQrious 8 месяцев назад +2

    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

    • @niteshthapliyal6998
      @niteshthapliyal6998 Месяц назад +1

      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

  • @hellgaming5500
    @hellgaming5500 3 месяца назад

    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

    • @sufiserious798
      @sufiserious798 3 месяца назад

      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.

  • @aggsha7580
    @aggsha7580 3 месяца назад

    Thanks A Lot Sir ❤❤

  • @vaibhavsingh3453
    @vaibhavsingh3453 10 месяцев назад +1

    Thank you sir 🙏❤

  • @parthpitroda35
    @parthpitroda35 9 месяцев назад

    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 ❤

  • @a2408__
    @a2408__ 7 месяцев назад

    thank you so much for a video of this much indepth knowledge ❤

  • @montyvats7003
    @montyvats7003 Год назад +1

    Can't we use Math.ceil(3.14) to change this constant value of PI 😅

  • @akshatwebile9322
    @akshatwebile9322 Год назад

    Your explanation is really too good 😊👍😊

  • @ManavSinghal-c6t
    @ManavSinghal-c6t 8 месяцев назад +1

    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

    • @tusharpandita167
      @tusharpandita167 5 месяцев назад

      let x = Math.PI
      console.log(Math.ceil(x))
      //otherway
      let b = Math.ceil(Math.PI)
      console.log(b)

  • @nitish7380
    @nitish7380 Год назад

    Aaj to barish ho rha sir ji 😉

  • @niketansinha8684
    @niketansinha8684 7 месяцев назад

    😮😮amazing 👏 😍

  • @malikusama-v1j
    @malikusama-v1j 5 месяцев назад

    very informative

  • @vishalthapa3101
    @vishalthapa3101 5 месяцев назад

    console.log(Math.ceil(Math.PI)); [Answer will be 4]

    • @56_adityakachare73
      @56_adityakachare73 5 месяцев назад +1

      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.

  • @Instrumentation010
    @Instrumentation010 10 месяцев назад

    Thank you sir for such amazing tutorials

  • @maliaraeeskhan8521
    @maliaraeeskhan8521 6 месяцев назад

    sir so nice of you....

  • @mohitchouhan171
    @mohitchouhan171 4 месяца назад

    Chai to honi chahiye ☺️

  • @priyankagehlot9945
    @priyankagehlot9945 5 месяцев назад

    Thankyou Sir😊

  • @pradeeppradeepkanaujiya8990
    @pradeeppradeepkanaujiya8990 29 дней назад

    Great👍👍👍👍

  • @rahulchaubey7176
    @rahulchaubey7176 9 месяцев назад

    jab padhane wala itna tagda ho to padhne me alag hi maja aata hai.

  • @AabaBeel
    @AabaBeel 9 месяцев назад

    How is your voice so clear ?
    also make a PLAYLIST on making videos with Clear Voice plzz

  • @CheatCodePython
    @CheatCodePython 2 месяца назад

    kar liya subscribe sir ji.

  • @arshitcc
    @arshitcc 7 месяцев назад

    Thank You Sir

  • @relaxation_music-7ym
    @relaxation_music-7ym 8 месяцев назад

    Thank You Sir ❤❤

  • @Pokeball-z9f
    @Pokeball-z9f 10 месяцев назад

    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.

  • @usmanahmad9847
    @usmanahmad9847 Год назад +4

    sir aap plzzz core JS se bhot saare projects krwaadijiye taaki hm logo k foundation mzbuuuut hojaaye

    • @chaiaurcode
      @chaiaurcode  Год назад +5

      Vo b krwa denge, bs linkedin pe aapke share ke notifications nhi aa rhe

    • @abhishekkhatana1256
      @abhishekkhatana1256 Год назад +2

      ​@@chaiaurcode😂😂😂😂 Emotional damage sir 😂😂😂

    • @pradhumanmanjare8016
      @pradhumanmanjare8016 10 месяцев назад

      ​@@chaiaurcodeSir aap bhutha acha explain arte ho Thanks 🙏

    • @kashinadoing
      @kashinadoing 9 месяцев назад

      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

  • @riajikbal2938
    @riajikbal2938 8 месяцев назад

    Great topic sir

  • @ajay.s4958
    @ajay.s4958 4 месяца назад

    tthanks sir jii

  • @rendevous9253
    @rendevous9253 11 месяцев назад

    people will understand the value when they will stuck in real life project.

  • @motivationalvideosforsucce7439
    @motivationalvideosforsucce7439 9 месяцев назад

    👍 nice teaching sir

  • @souvikdas7531
    @souvikdas7531 10 месяцев назад +1

    but u didnt change the value of PI.

  • @usmanahmad9847
    @usmanahmad9847 Год назад

    sir aapne kha thaa mini-projects on particular topic p krwaunga taaki foundation ambuja cement bnjaaye hmara wo kb aayyega???

  • @ibcer.shubhamsinghbadabusi7586
    @ibcer.shubhamsinghbadabusi7586 3 месяца назад

    In the beginning , I was thinking about Math.ceil(Math.PI). 😀😀😀

  • @Dev-Phantom
    @Dev-Phantom 10 месяцев назад +1

    cool sir

  • @Krishan_Morwal
    @Krishan_Morwal 7 месяцев назад

    guru ji is great

  • @rameshwarnalawade7499
    @rameshwarnalawade7499 10 месяцев назад

    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.

  • @17rutvijamali79
    @17rutvijamali79 7 месяцев назад

    Thank you

  • @saketkandari3568
    @saketkandari3568 Месяц назад

    thank you sir

  • @ashutoshmishra9610
    @ashutoshmishra9610 Месяц назад

    Amazing

  • @RajatKumar-ib4ls
    @RajatKumar-ib4ls Год назад

    thank you so much sir for ur effort and dedication to the students who want to learn in a simple way...❤❤

  • @6.squash.936
    @6.squash.936 Год назад +1

    Sir saas toh lene dijiye , ajj toh ek baad ek dhamaka hora hai
    lagta hai sir ne ajj oppenheimer movie dekh li

    • @chaiaurcode
      @chaiaurcode  Год назад +2

      Kl hi dekh ke aaya tha 😂😂

  • @vijaykumarpatil6459
    @vijaykumarpatil6459 4 месяца назад

    Very cool

  • @Asimch71
    @Asimch71 Месяц назад

    thankyou sir

  • @ashishkumarranjan808
    @ashishkumarranjan808 10 месяцев назад

    Great

  • @sabirpathan430
    @sabirpathan430 Год назад

    Always good video

  • @youarewhatyoulistento3420
    @youarewhatyoulistento3420 2 месяца назад

    those who don't get the answer we can't change the math.pi as it is not writable

  • @shafiulbashar2023
    @shafiulbashar2023 Месяц назад

    Thanks

  • @ankushladani496
    @ankushladani496 Год назад

    Dhanyawad guruji 🙏

  • @irahuldutta02
    @irahuldutta02 Год назад +1

    sir apne to bombs giradi channel pe achanak 😂

  • @AhtshamUlhaq-o7b
    @AhtshamUlhaq-o7b Год назад

    osm video sir

  • @gouravdubey9864
    @gouravdubey9864 4 месяца назад

    thankyou

  • @rummy2416
    @rummy2416 Год назад

    Bhai m arts stream se apne experience ye btaao arts walo k liye career dekhna chiye esme😊