Posts

JavaScript Refresher and Detailed Study - Table of Contents for Post Series

Last updated on 20 Sep 2026 Introduction Period: 3 August 2026 to 20 September 2026 (part-time, ongoing) This is a refresher cum detailed study on JavaScript topics that I had quickly studied perhaps in end 2023 and early 2024, and then referred to when needed for software development learning or work I was doing. I had used W3Schools JavaScript tutorial in the past and even recommended it in my Jan. 2024 blog post: Roadmap to Learning Full Stack (MERN) Web Development Beginner Level Through Free Online Tutorials . But Gemini recommended JavaScript.info as best for a thorough refresher. So I used JavaScript.info . I have put up a series of longish blog posts related to this JavaScript refresher and detailed study, with each post having a Contents section with internal links to the sections. This post lists all the Contents of all the posts in the series with the internal links going directly to the related section in the post. This refresher and detailed study is ongoing. JavaSc...

JavaScript Refresher and Detailed Study - Part 5

Last updated on 20 Sep 2026 Post series: Part 1 ,     Prev Part (4) ,     Post Series TOC Contents How common is it to have toJSON() method defined for an object when doing JS web app dev For browser side debugging, console.log for objects is good; For terminal debugging, JSON.stringify() with space 2 parameter or console.dir handles deeply nested objects Date objects are serialized to string by default by JSON.stringify() but not deserialized to date object by default by JSON.parse(); Solutions to this issue Next.js uses custom React serialization format that supports Date , Map , Set , and even Promise objects. JSON.stringify() and JSON.parse() do not handle them properly. BigInt issue JS namespace object is not really a POJO - Plain Old JavaScript Object Informal definition of JS namespace object MDN page on JSON imprecisely refers to "All properties and methods of JSON" JavaScript does not have proper namespace mechanism ...