Learning JavaScript Essentials with Hitesh Choudhary

Day 18 of my Chai Code web development journey Thanks to Hitesh Choudhary sir for today’s session on JavaScript Essentials (Part 2). Today was focused on arrays and objects, and this felt very close to real-world coding. Most of the learning was around methods that are actually used in production. For arrays, the most useful part was understanding how data is handled: Mutating methods (change original array): push, pop, shift, unshift, splice Non-mutating methods (return new array): slice, concat, flat This distinction matters a lot because in real applications we try to avoid mutating original data. Then the core trio: map → transform data filter → select data reduce → combine data into a single result These are used everywhere: formatting API responses filtering lists calculating totals Sorting was another important point: sort() does not work correctly for numbers by default so we need to use a compare function On the object side: Dot notation vs bracket notation dot when key is known bracket when key is dynamic Object methods that are actually useful: Object.keys() Object.values() Object.entries() These help in looping and transforming objects into arrays Also learned: Object.freeze() → prevents any changes Object.seal() → allows updates but no add/delete "in" vs hasOwnProperty(): "in" checks everything including prototype hasOwnProperty() checks only own properties Big takeaway: Most real-world JavaScript is just about taking data, transforming it, and returning it in a clean way. Day 18 done. Learning is getting more practical now. Thank you Hitesh Choudhary sir, Piyush Garg sir, Anirudh Jwala sir, Suraj Kumar Jha for the support #JavaScript #WebDevelopment #CodingJourney #LearnToCode #100DaysOfCode #Developers #Programming #TechCareers

  • text

To view or add a comment, sign in

Explore content categories