<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Advanced on Ghafoor's Personal Blog</title><link>https://ghafoorsblog.com/tags/advanced/</link><description>Recent content in Advanced on Ghafoor's Personal Blog</description><generator>Hugo</generator><language>en</language><managingEditor>hello@ghafoorsblog.com (AG Sayyed)</managingEditor><webMaster>hello@ghafoorsblog.com (AG Sayyed)</webMaster><copyright>Copyright © 2024-2026 AG Sayyed. All Rights Reserved.</copyright><lastBuildDate>Sun, 24 May 2026 09:13:13 +0100</lastBuildDate><atom:link href="https://ghafoorsblog.com/tags/advanced/index.xml" rel="self" type="application/rss+xml"/><item><title>What and Why in JavaScript — Advanced Reference</title><link>https://ghafoorsblog.com/posts/js/09-advanced-reference/</link><pubDate>Wed, 01 Oct 2025 08:00:00 +0000</pubDate><author>hello@ghafoorsblog.com (AG Sayyed)</author><guid>https://ghafoorsblog.com/posts/js/09-advanced-reference/</guid><description>&lt;h2 id="how-to-read-this-post"&gt;How to read this post&lt;/h2&gt;
&lt;p&gt;This is the wrap-up for the JavaScript series. The previous eight posts were tutorials — they build mental models from first principles. This post is a &lt;strong&gt;reference&lt;/strong&gt;: short answers to the deeper &lt;em&gt;&amp;ldquo;what is this and why does it work that way&amp;rdquo;&lt;/em&gt; questions that the earlier tutorials hint at but rarely linger on.&lt;/p&gt;
&lt;p&gt;Use the headings as an index. Each section is self-contained.&lt;/p&gt;
&lt;h2 id="type-system"&gt;Type system&lt;/h2&gt;
&lt;h3 id="what-is-duck-typing"&gt;What is &amp;ldquo;duck typing&amp;rdquo;?&lt;/h3&gt;

 &lt;blockquote
 
 class="blockquote border-start ps-3 py-1 border-primary border-4"&gt;
 &lt;p&gt;&lt;em&gt;If it walks like a duck and quacks like a duck, treat it as a duck.&lt;/em&gt;&lt;/p&gt;</description></item></channel></rss>