<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Abdul Rehman on Medium]]></title>
        <description><![CDATA[Stories by Abdul Rehman on Medium]]></description>
        <link>https://medium.com/@abdulrehman0?source=rss-5a8c20ce7a5------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*xcElSDDtFZybLC2rdZ57kA.png</url>
            <title>Stories by Abdul Rehman on Medium</title>
            <link>https://medium.com/@abdulrehman0?source=rss-5a8c20ce7a5------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 22 Nov 2026 20:22:11 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@abdulrehman0/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Mastering JavaScript: A Beginner’s Guide (Part 9) | Web Development Series]]></title>
            <link>https://medium.com/@abdulrehman0/mastering-javascript-a-beginners-guide-part-9-web-development-series-2636feb707a0?source=rss-5a8c20ce7a5------2</link>
            <guid isPermaLink="false">https://medium.com/p/2636feb707a0</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Abdul Rehman]]></dc:creator>
            <pubDate>Mon, 03 Mar 2025 20:36:44 GMT</pubDate>
            <atom:updated>2025-03-03T20:36:44.492Z</atom:updated>
            <content:encoded><![CDATA[<h4>JavaScript Advanced: <strong>DOM &amp; BOM in JavaScript</strong></h4><p>Welcome to Part 9 of our <strong>JavaScript Web Development Series</strong>! In this part, we’ll explore the <strong>Document Object Model (DOM)</strong> and <strong>Browser Object Model (BOM)</strong> in exhaustive detail. These concepts are the gateway to creating dynamic, interactive web applications. We’ll cover everything from basic element selection to advanced event handling, with real-world projects and code examples. Let’s dive in!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_2rJT3j_Afq2AlrYca3DuA.png" /><figcaption>Mastering JS</figcaption></figure><h3>1. What is the DOM?</h3><p>The <strong>Document Object Model (DOM)</strong> is a programming interface for HTML/XML documents. It represents the structure of a web page as a tree of objects, where each node corresponds to a part of the page (e.g., elements, attributes, text).</p><blockquote><strong><em>Key Characteristics</em></strong></blockquote><p><strong>Tree Structure</strong>: The DOM is a hierarchical tree of nodes.</p><figure><img alt="Tree Structure JS" src="https://cdn-images-1.medium.com/max/846/1*vZyxNEe-efPOdMAX4jjlwA.png" /><figcaption>Tree Structure JS</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/846/1*iDNqj-0BNbIghNlBpxHvYg.png" /><figcaption>DOM Representation JS</figcaption></figure><p><strong>Platform-Neutral</strong>: Works across browsers and programming languages.</p><p><strong>Live Representation</strong>: Changes to the DOM are immediately reflected on the page.</p><h3>2. DOM Node Types</h3><blockquote><strong><em>Node TypeDescription</em></strong></blockquote><p><strong><em>Element:</em></strong><em> HTML tags (e.g., </em><strong><em>&lt;div&gt;</em></strong><em>, </em><strong><em>&lt;p&gt;</em></strong><em>).</em></p><p><strong><em>Text:</em></strong><em> Text content inside elements.</em></p><p><strong><em>Comment:</em></strong><em> HTML comments ( </em><strong><em>&lt;! — — &gt;</em></strong><em> ).</em></p><p><strong><em>Document:</em></strong><em> Root node (entire page).</em></p><p><strong><em>Attribute:</em></strong><em> Attributes of elements (e.g., </em><strong><em>class</em></strong><em>).</em></p><h3>3. Selecting DOM Elements</h3><blockquote><strong><em>Basic Selectors</em></strong></blockquote><ol><li><strong><em>getElementById()</em></strong>: Select by <strong><em>id</em></strong> attribute.</li></ol><figure><img alt="getElementById — JS" src="https://cdn-images-1.medium.com/max/1024/1*TU5SS4gmqOdbUbWWNKp_KA.png" /><figcaption><em>getElementById — JS</em></figcaption></figure><p><strong><em>2. getElementsByClassName()</em></strong>: Select elements by class (returns a live <strong><em>HTMLCollection</em></strong>).</p><figure><img alt="getElementsByClassName — JS" src="https://cdn-images-1.medium.com/max/1024/1*mtRA7yqKw6oIpYaiLC5-7g.png" /><figcaption>getElementsByClassName — JS</figcaption></figure><p><strong><em>3. getElementsByTagName():</em></strong> Select elements by tag name (e.g., <strong><em>div</em></strong> , <strong><em>p</em></strong>).</p><figure><img alt="getElementsByTagName — JS" src="https://cdn-images-1.medium.com/max/1024/1*rdi6QdWVJxkLY0txdQNoXQ.png" /><figcaption>getElementsByTagName — JS</figcaption></figure><blockquote><strong><em>Modern Selectors (CSS-like)</em></strong></blockquote><ol><li><strong><em>querySelector():</em></strong> Returns the <strong><em>first</em></strong> matching element.</li></ol><figure><img alt="querySelector — JS" src="https://cdn-images-1.medium.com/max/1024/1*RWa-4EYcbfEgDaMUr6WccQ.png" /><figcaption>querySelector — JS</figcaption></figure><p>2. <strong><em>querySelectorAll():</em></strong> Returns all matches as a static <strong><em>NodeList</em></strong>.</p><figure><img alt="querySelectorAll — JS" src="https://cdn-images-1.medium.com/max/1024/1*2roTZIvPEXfjSmwYVXOPNw.png" /><figcaption>querySelectorAll — JS</figcaption></figure><blockquote><strong><em>Special Selectors</em></strong></blockquote><ol><li><strong><em>document.forms:</em></strong> Access all forms.</li><li><strong><em>document.images:</em></strong> Access all images.</li></ol><h3>4. DOM Manipulation</h3><blockquote><strong><em>Modifying Content</em></strong></blockquote><ol><li><strong><em>textContent</em></strong>: Safely set/get text (ignores HTML tags).</li></ol><figure><img alt="textContent — JS" src="https://cdn-images-1.medium.com/max/1024/1*CXVjDkS9wGL9JzuoBttGZg.png" /><figcaption>textContent — JS</figcaption></figure><p>2. <strong><em>innerHTML</em></strong>: Set/get HTML content (caution: security risk with user input).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KYLKzJR60vAIBgnzsX_mNA.png" /><figcaption>innerHTML — JS</figcaption></figure><p>3. <strong><em>innerText</em></strong>: Similar to <strong><em>textContent</em></strong> but respects CSS visibility.</p><blockquote><strong><em>Modifying Attributes</em></strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6VPlmbj0Qc9ztWT_GfySaA.png" /><figcaption>Modifying Attributes — JS</figcaption></figure><blockquote><strong><em>Modifying Styles</em></strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wYkiuFVxQnV3EMXF4R9fNQ.png" /><figcaption>Modifying Styles — JSModifying Styles — JS</figcaption></figure><blockquote><strong><em>CSS Classes</em></strong></blockquote><figure><img alt="CSS Classes — JS" src="https://cdn-images-1.medium.com/max/1024/1*Knj1Nd4_XgZDHW1L9YE91Q.png" /><figcaption>CSS Classes — JS</figcaption></figure><h3>5. Creating &amp; Removing Elements</h3><blockquote><strong><em>Create Elements</em></strong></blockquote><figure><img alt="Create Elements — JS" src="https://cdn-images-1.medium.com/max/1024/1*XNPt_Uj-qARf900JI8oYOQ.png" /><figcaption>Create Elements — JS</figcaption></figure><blockquote><strong><em>Clone Elements</em></strong></blockquote><figure><img alt="Clone Elements — JS" src="https://cdn-images-1.medium.com/max/1024/1*TSzjs1ISEWw_4ga72B4gGA.png" /><figcaption>Clone Elements — JS</figcaption></figure><blockquote><strong><em>Remove Elements</em></strong></blockquote><figure><img alt="Remove Elements — JS" src="https://cdn-images-1.medium.com/max/1024/1*QrXR4BBk8J0NisupnYODoA.png" /><figcaption>Remove Elements — JS</figcaption></figure><h3>6. Event Handling</h3><blockquote><strong><em>Event Listeners</em></strong></blockquote><figure><img alt="Event Listeners — JS" src="https://cdn-images-1.medium.com/max/1024/1*w2t1Zfrx6aukeKDoiPmVvA.png" /><figcaption>Event Listeners — JS</figcaption></figure><blockquote><strong><em>Common Events</em></strong></blockquote><p><strong>Mouse</strong>: <em>click, mouseover, mouseout.</em></p><p><strong>Keyboard</strong>: <em>keydown, keyup.</em></p><p><strong>Form</strong>:<em> submit, input, change.</em></p><p><strong>Window</strong>: <em>load, resize, scroll.</em></p><blockquote><strong><em>Event Propagation</em></strong></blockquote><p><strong>Bubbling</strong>: Events propagate from target to root.</p><p><strong>Capturing</strong>: Events propagate from root to target.</p><figure><img alt="Event Propagation — JS" src="https://cdn-images-1.medium.com/max/1024/1*YgbJNuVfV55r_No22iGWaw.png" /><figcaption>Event Propagation — JS</figcaption></figure><blockquote><strong><em>Event Delegation</em></strong></blockquote><p>Handle events on parent elements for dynamic content.</p><figure><img alt="Event Delegation — JS" src="https://cdn-images-1.medium.com/max/1024/1*CKyNNXpXU9wa84tuXpvLtQ.png" /><figcaption>Event Delegation — JS</figcaption></figure><h3>7. Browser Object Model (BOM)</h3><p>The <strong>BOM</strong> provides access to browser features beyond the DOM:</p><blockquote><strong><em>Window Object</em></strong></blockquote><p><strong>Global Scope</strong>: <strong><em>window</em></strong> is the root object in browsers.</p><p><strong><em>Methods</em></strong><em>:</em></p><figure><img alt="Window Object — JS" src="https://cdn-images-1.medium.com/max/1024/1*uW3r3psb0qawr_oUJgVqFQ.png" /><figcaption>Window Object — JS</figcaption></figure><blockquote><strong><em>Location Object</em></strong></blockquote><p>Access/manipulate the URL.</p><figure><img alt="Location Object — JS" src="https://cdn-images-1.medium.com/max/1024/1*lY2v6xM2rP5GwsmeJYJlhA.png" /><figcaption>Location Object — JS</figcaption></figure><blockquote><strong><em>History Object</em></strong></blockquote><p>Manage browser history.</p><figure><img alt="History Object — JS" src="https://cdn-images-1.medium.com/max/1024/1*X8gzzkcvWFEGo7WL79nuCw.png" /><figcaption>History Object — JS</figcaption></figure><blockquote><strong><em>Navigator Object</em></strong></blockquote><p>Get browser/OS info.</p><figure><img alt="Navigator Object — JS" src="https://cdn-images-1.medium.com/max/1024/1*wQw-vTaKyEsIkyYrF-wEfw.png" /><figcaption>Navigator Object — JS</figcaption></figure><blockquote><strong><em>Screen Object</em></strong></blockquote><p>Access screen properties.</p><figure><img alt="Screen Object — JS" src="https://cdn-images-1.medium.com/max/1024/1*NOQoalpkdFGqJjaBqCBaHQ.png" /><figcaption>Screen Object — JS</figcaption></figure><h3>DOM Project 1: Todo List App</h3><p>Build a dynamic Todo List with CRUD operations and local storage.</p><p><strong>Purpose</strong>: <em>Create a dynamic list where users can add/delete tasks.</em></p><p><strong>DOM Techniques</strong>:</p><ul><li><strong><em>Element Creation</em></strong><em>: Dynamically generate </em><strong><em>&lt;li&gt;</em></strong><em> elements for each task.</em></li><li><strong><em>Event Listeners</em></strong><em>: Handle button clicks to add/delete tasks.</em></li><li><strong><em>Local Storage</em></strong><em>: Persist todos between page reloads using </em><strong><em>localStorage</em></strong><em>.</em></li></ul><p><strong>Key Features</strong>:</p><ul><li><em>Add tasks via input field.</em></li><li><em>Delete tasks with a dedicated button.</em></li><li><em>Data remains intact after closing/reopening the browser.</em></li></ul><blockquote><strong><em>HTML</em></strong></blockquote><figure><img alt="TODO HTML" src="https://cdn-images-1.medium.com/max/1024/1*whi6SvmbzvgB0z9minesBw.png" /><figcaption>TODO HTML</figcaption></figure><blockquote><strong><em>JavaScript</em></strong></blockquote><figure><img alt="TODO JS" src="https://cdn-images-1.medium.com/max/1024/1*elvo0Y5yoPS-u40B1Juycw.png" /><figcaption>TODO JS</figcaption></figure><h3>DOM Project 2: Theme Toggler</h3><p>We are going to Create a light/dark mode toggle with CSS and DOM manipulation.</p><p><strong>Purpose</strong>: <em>Switch between light/dark themes with a button click.</em></p><p><strong>DOM Techniques</strong>:</p><ul><li><strong><em>Class Manipulation</em></strong><em>: Toggle CSS classes (</em><strong><em>light/dark</em></strong><em>) on the </em><strong><em>&lt;body&gt;</em></strong><em>.</em></li><li><strong><em>Event Handling</em></strong><em>: Trigger theme change on button click.</em></li><li><strong><em>Local Storage</em></strong><em>: Save the selected theme for future visits.</em></li></ul><p><strong>Key Features</strong>:</p><ul><li><em>Instant visual feedback on theme switch.</em></li><li><em>Theme preference saved across sessions.</em></li></ul><blockquote><strong><em>HTML</em></strong></blockquote><figure><img alt="Theme Toggler HTML" src="https://cdn-images-1.medium.com/max/1024/1*lMpwta9SCaphCRJLTN8Ltw.png" /><figcaption>Theme Toggler HTML</figcaption></figure><blockquote><strong><em>CSS</em></strong></blockquote><figure><img alt="Theme Toggler CSS" src="https://cdn-images-1.medium.com/max/1024/1*3hPNg4f4gkLo7mpVTvKNWQ.png" /><figcaption>Theme Toggler CSS</figcaption></figure><blockquote><strong><em>JavaScript</em></strong></blockquote><figure><img alt="Theme Toggler JS" src="https://cdn-images-1.medium.com/max/1024/1*G1ucbbo-fRh93vkmXSkx6g.png" /><figcaption>Theme Toggler JS</figcaption></figure><blockquote><strong><em>Why These Projects?</em></strong></blockquote><p>They demonstrate core DOM operations (creating elements, event handling, styling) and practical use of browser storage (<strong><em>localStorage</em></strong>) for real-world apps.</p><h3>— — Summarize today’s learning of JS — —</h3><p>I have provided the important Key Takeaways for JavaScript Beginners from today’s JS Learnings.</p><ul><li><strong><em>DOM</em></strong><em> is a Tree: It represents the HTML document as a hierarchical node structure.</em></li><li><em>Select Wisely: Prefer </em><strong><em>querySelector/querySelectorAll</em></strong><em> for flexibility.</em></li><li><em>Avoid InnerHTML: Use </em><strong><em>textContent</em></strong><em> to prevent XSS attacks.</em></li><li><strong><em>Event Delegation</em></strong><em>: Handle events on parent elements for dynamic content.</em></li><li><em>BOM vs DOM: </em><strong><em>BOM</em></strong><em> deals with </em><strong><em>browser</em></strong><em> features; </em><strong><em>DOM</em></strong><em> deals with page </em><strong><em>content</em></strong><em>.</em></li><li><em>CSS Classes: Use </em><strong><em>classList</em></strong><em> for adding/removing classes.</em></li><li><strong><em>Local Storage</em></strong><em>: Persist data between sessions using localStorage.</em></li><li><em>Async DOM Updates: Use </em><strong><em>requestAnimationFrame </em></strong><em>for smooth animations.</em></li><li><strong><em>Security</em></strong><em>: Sanitize user input before modifying the DOM.</em></li><li><strong><em>Performance</em></strong><em>: Minimize DOM manipulation in loops; batch changes.</em></li></ul><p>Thank you so much for reading till the last. I hope you learned something unique from this part of the JavaScript Series. You can also discover more part of this series from <a href="https://medium.com/u/5a8c20ce7a5">Abdul Rehman</a> in this series and read as well.</p><p>I would love to receive/read the feedbacks, suggestions and comments from awesome tech enthusiasts and explorers.</p><p><strong>If you have any questions, feel free to reach out to me at:</strong></p><blockquote><strong><em>Website: </em></strong><a href="https://devabdulrehman.vercel.app/">https://devabdulrehman.vercel.app/</a></blockquote><blockquote><strong><em>LinkedIn:</em></strong><em> </em><a href="https://www.linkedin.com/in/abdulrehman0/">https://www.linkedin.com/in/abdulrehman0</a></blockquote><blockquote><strong><em>Twitter:</em></strong><em> </em><a href="https://twitter.com/intent/follow?screen_name=devabdulrehman">https://twitter.com/intent/follow?screen_name=devabdulrehman</a></blockquote><blockquote><strong><em>YouTube:</em></strong><em> </em><a href="https://www.youtube.com/@DevAbdulRehman?sub_confirmation=1">https://www.youtube.com/@DevAbdulRehman?sub_confirmation=1</a></blockquote><blockquote><strong><em>GitHub:</em></strong><em> </em><a href="https://github.com/abdulrehmanghub">https://github.com/abdulrehmanghub</a></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2636feb707a0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mastering JavaScript: A Beginner’s Guide (Part 8) | Web Development Series]]></title>
            <link>https://medium.com/@abdulrehman0/mastering-javascript-a-beginners-guide-part-8-web-development-series-106a84f2c1b3?source=rss-5a8c20ce7a5------2</link>
            <guid isPermaLink="false">https://medium.com/p/106a84f2c1b3</guid>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Abdul Rehman]]></dc:creator>
            <pubDate>Fri, 21 Feb 2025 13:10:53 GMT</pubDate>
            <atom:updated>2025-02-21T13:15:25.439Z</atom:updated>
            <content:encoded><![CDATA[<h4>JavaScript Advanced: <strong>Async JS, APIs, Promises and Modules</strong></h4><p>Hi everyone, welcome to Part 8 of our <strong>JavaScript Web Development Series</strong>! In this installment, we’ll conquer <strong><em>asynchronous JavaScript, API interactions, and modern techniques like async/await, fetch, and axios.</em></strong> We’ll also explore <strong><em>modules (import/export)</em></strong> and tie everything together with hands-on projects. Let’s dive in!</p><figure><img alt="JavaScript Mastery" src="https://cdn-images-1.medium.com/max/1024/1*_2rJT3j_Afq2AlrYca3DuA.png" /><figcaption>JavaScript Mastery</figcaption></figure><h3>1. Asynchronous JavaScript: The Backbone of Modern Apps</h3><p>Asynchronous code allows JavaScript to perform tasks like API calls without blocking the main thread. This is crucial for building responsive apps.</p><blockquote><strong><em>Callbacks (The Old Way)</em></strong></blockquote><p>Callbacks are functions passed as arguments to execute after a task completes.</p><figure><img alt="callbacks — JS" src="https://cdn-images-1.medium.com/max/1024/1*RrWB8MJ_zKQ1V_lHpuawOQ.png" /><figcaption>callbacks — JS</figcaption></figure><p><strong><em>Problem</em></strong><em>: Callback hell (nested callbacks) makes code unreadable.</em></p><blockquote><strong><em>Promises (The Better Way)</em></strong></blockquote><p>Promises represent the eventual completion (or failure) of an async operation.</p><figure><img alt="promises — JS" src="https://cdn-images-1.medium.com/max/1024/1*YLb4O4PTBfavzyf3krrltQ.png" /><figcaption>promises — JS</figcaption></figure><blockquote><strong><em>Async/Await (The Modern Way)</em></strong></blockquote><p>async / await simplifies promise handling with synchronous-like syntax.</p><p><em>“async and await make promises easier to write.” </em><strong><em>async</em></strong><em> makes a function return a Promise. </em><strong><em>await</em></strong><em> makes a function wait for a Promise</em></p><figure><img alt="async/await — JS" src="https://cdn-images-1.medium.com/max/1024/1*-jcAUpxBVn_GgVK8A5Nwow.png" /><figcaption>async/await — JS</figcaption></figure><h3>2. Making HTTP Requests</h3><blockquote><strong><em>XMLHttpRequest (Legacy)</em></strong></blockquote><p>The older way to make requests (rarely used now)</p><figure><img alt="xmlhttpsrequest — JS" src="https://cdn-images-1.medium.com/max/1024/1*nZVqOpwNjLuy-dacOXPdbw.png" /><figcaption>xmlhttpsrequest — JS</figcaption></figure><blockquote><strong><em>Fetch API (Modern)</em></strong></blockquote><p>The native, promise-based method. The Fetch API provides a JavaScript interface for making HTTP requests and processing the responses. Fetch is the modern replacement for XMLHttpRequest: unlike XMLHttpRequest, which uses callbacks.</p><figure><img alt="fetch — JS" src="https://cdn-images-1.medium.com/max/1024/1*ZyHDuH1fM74dX3YoiCUCjw.png" /><figcaption>fetch — JS</figcaption></figure><blockquote><strong><em>Axios (Popular Library)</em></strong></blockquote><p>A simpler, feature-rich library. First install axios through this command in terminal.</p><figure><img alt="intall axios command- JS" src="https://cdn-images-1.medium.com/max/1024/1*JKPTmjndaG91Gs_u_1HmCw.png" /><figcaption>intall axios command- JS</figcaption></figure><figure><img alt="axios — JS" src="https://cdn-images-1.medium.com/max/1024/1*tSTErwsWBRHcSNI6PFq4uw.png" /><figcaption>axios — JS</figcaption></figure><h3>3. Modules: Import &amp; Export</h3><p>Organize code across files using ES6 modules. JavaScript modules allow us to break up our code into separate files. This makes it easier to maintain a code-base. Modules are imported from external files with the import statement. Modules also rely on type=”module” in the &lt;script&gt; tag.</p><blockquote><strong><em>Export</em></strong></blockquote><p>Modules with <strong>functions</strong> or <strong>variables</strong> can be stored in any external file. There are two types of exports: <strong>Named Exports</strong> and <strong>Default Exports</strong>.</p><figure><img alt="modules: export — JS" src="https://cdn-images-1.medium.com/max/1024/1*0lrq1VN80VYm1O5YNWhpAw.png" /><figcaption>modules: export — JS</figcaption></figure><blockquote><strong><em>Import</em></strong></blockquote><p>We can import modules into a file in two ways, based on if they are named exports or default exports. Named exports are constructed using curly braces. Default exports are not.</p><figure><img alt="modules: import — JS" src="https://cdn-images-1.medium.com/max/1024/1*WJsKoMI6XF1-9zB7n6Y6dw.png" /><figcaption>modules: import— JS</figcaption></figure><h3>Mini Projects</h3><h4>Weather App with Fetch &amp; Async/Await</h4><p>Fetch real-time weather data from an API.</p><figure><img alt="project 1 : WeatherApp" src="https://cdn-images-1.medium.com/max/1024/1*S3bDVAIiv9QUN37C1k9yyg.png" /><figcaption>project 1 : WeatherApp</figcaption></figure><p><strong>Details:</strong></p><p><em>In this project, JavaScript function, </em><strong><em>getWeather</em></strong><em>, is an asynchronous function that fetches weather data for a given city using the OpenWeatherMap API. The function takes a city name as an argument and attempts to retrieve its current weather details. Inside the function, a </em><strong><em>try</em></strong><em> block is used to handle the API request with the </em><strong><em>fetch</em></strong><em> function, which sends a GET request to the OpenWeatherMap API endpoint. The city name is dynamically inserted into the URL using template literals, and the </em><strong><em>appid</em></strong><em> parameter requires an API key (which should be replaced with a valid key).</em></p><p><em>Once the request is successful, the response is converted to JSON format using </em><strong><em>await response.json()</em></strong><em>, storing the weather data in the </em><strong><em>data </em></strong><em>variable. The temperature for the specified city is then logged to the console using </em><strong><em>console.log</em></strong><em>, where </em><strong><em>data.main.temp </em></strong><em>represents the temperature in Kelvin (unless the API parameters specify otherwise). If an error occurs during the API request, the </em><strong><em>catch</em></strong><em> block handles it by logging an error message to the console. Finally, the function is called with </em><strong><em>“Lahore”</em></strong><em> as the city name, initiating the weather data request for London.</em></p><h4>Todo List with Axios</h4><p>CRUD operations using JSONPlaceholder (mock API)</p><figure><img alt="project 1 : Crud" src="https://cdn-images-1.medium.com/max/1024/1*CZm0HgO9RQPg7fYhvQT8nA.png" /><figcaption>project 1 : CRUD</figcaption></figure><p><strong>Details:</strong></p><p><em>In this project we’ve used the </em><strong><em>axios </em></strong><em>library to fetch a list of todos from the </em><strong><em>JSONPlaceholder API</em></strong><em>, which is a free online REST API for testing and prototyping. The function </em><strong><em>fetchTodos</em></strong><em> is defined as an asynchronous function, meaning it allows asynchronous operations like fetching data from a server without blocking the execution of other code. Inside the function, a </em><strong><em>try</em></strong><em> block is used to handle the API request using </em><strong><em>axios.get</em></strong><em>, which sends a GET request to </em><strong><em>“</em></strong><a href="https://jsonplaceholder.typicode.com/todos"><strong><em>https://jsonplaceholder.typicode.com/todos</em></strong></a><strong><em>&quot;</em></strong><em>.</em></p><p><em>When the request is successful, the response is stored in the </em><strong><em>response </em></strong><em>variable, and the first five todos from the received data are logged to the console using </em><strong><em>console.log(response.data.slice(0, 5))</em></strong><em>. If an error occurs during the request, the </em><strong><em>catch </em></strong><em>block handles it by logging an error message to the console. Finally, the </em><strong><em>fetchTodos </em></strong><em>function is called at the end of the script to initiate the API request.</em></p><h3>— — Summarize today’s learning of JS — —</h3><p>I have provided the important Key Takeaways for JavaScript Beginners from today’s JS Learnings.</p><ul><li><em>Avoid Callbacks: Use </em><strong><em>async/await</em></strong><em> or </em><strong><em>Promises </em></strong><em>for cleaner code.</em></li><li><em>Use </em><strong><em>fetch</em></strong><em> for simple, native requests.</em></li><li><em>Use </em><strong><em>axios</em></strong><em> for advanced features (interceptors, error handling).</em></li><li><em>Modules: Split code into files with </em><strong><em>import/export</em></strong><em> for maintainability.</em></li><li><em>Always Handle Errors: Use </em><strong><em>try/catch</em></strong><em> with async/await or .catch() with Promises.</em></li><li><em>APIs: Use </em><strong><em>public APIs</em></strong><em> like OpenWeatherMap or JSONPlaceholder for practice.</em></li></ul><p>Thank you so much for reading till the last. I hope you learned something unique from this part of the JavaScript Series. You can also discover more part of this series from <a href="https://medium.com/u/5a8c20ce7a5"><strong><em>Abdul Rehman</em></strong></a> in this series and read as well.</p><p>I would love to receive/read the feedbacks, suggestions and comments from awesome tech enthusiasts and explorers.</p><p><strong>If you have any questions, feel free to reach out to me at:</strong></p><blockquote><strong><em>Website: </em></strong><a href="https://devabdulrehman.vercel.app/">https://devabdulrehman.vercel.app/</a></blockquote><blockquote><strong><em>LinkedIn:</em></strong><em> </em><a href="https://www.linkedin.com/in/abdulrehman0/">https://www.linkedin.com/in/abdulrehman0</a></blockquote><blockquote><strong><em>Twitter:</em></strong><em> </em><a href="https://twitter.com/intent/follow?screen_name=devabdulrehman">https://twitter.com/intent/follow?screen_name=devabdulrehman</a></blockquote><blockquote><strong><em>YouTube:</em></strong><em> </em><a href="https://www.youtube.com/@DevAbdulRehman?sub_confirmation=1">https://www.youtube.com/@DevAbdulRehman?sub_confirmation=1</a></blockquote><blockquote><strong><em>GitHub:</em></strong><em> </em><a href="https://github.com/abdulrehmanghub">https://github.com/abdulrehmanghub</a></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=106a84f2c1b3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mastering JavaScript: A Beginner’s Guide (Part 7) | Web Development Series]]></title>
            <link>https://medium.com/@abdulrehman0/mastering-javascript-a-beginners-guide-part-7-web-development-series-45065d30bcf6?source=rss-5a8c20ce7a5------2</link>
            <guid isPermaLink="false">https://medium.com/p/45065d30bcf6</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Abdul Rehman]]></dc:creator>
            <pubDate>Mon, 10 Feb 2025 18:25:57 GMT</pubDate>
            <atom:updated>2025-02-10T18:25:57.509Z</atom:updated>
            <content:encoded><![CDATA[<h4>JavaScript Advanced: Scope, Closures and Hoisting in JS</h4><p>Welcome to the Part 7 of our <strong>JavaScript Web Development Series</strong>! From now onwards we will be covering the advance topics of JavaScript. Make sure to have a read to previous parts of this JavaScript Series that you’ll understand the advance concepts more clearly.</p><p>Today, we will cover the concepts of <strong>scopes</strong> and <strong>closures</strong> — the backbone of how JavaScript manages variable accessibility and memory. <strong>Hoisting</strong> is <strong>JavaScript’s</strong> default behavior of moving all declarations to the top of the current scope (to the top of the current script or the current function). These concepts are critical for writing secure, efficient, and bug-free code. Are you ready? Let’s explore them in depth with practical examples and real-world analogies.</p><figure><img alt="Mastering JavaScript" src="https://cdn-images-1.medium.com/max/1024/1*_2rJT3j_Afq2AlrYca3DuA.png" /><figcaption>Mastering JavaScript</figcaption></figure><h3>1. Scopes: The Rules of Variable Visibility</h3><p>A scope defines where a variable can be accessed in your code. JavaScript uses <strong>lexical scoping</strong>, meaning scope is determined by where variables/functions are declared.</p><blockquote><strong><em>Global Scope</em></strong></blockquote><p>Variables declared outside any function or block are globally accessible.</p><figure><img alt="global scope — js" src="https://cdn-images-1.medium.com/max/1024/1*wOUfRDsm6-1GBj7JlWuoog.png" /><figcaption>global scope — JS</figcaption></figure><p><strong><em>Risk: </em></strong><em>Overusing global variables can lead to naming collisions and unintended modifications.</em></p><blockquote><strong><em>Function Scope</em></strong></blockquote><p>Variables declared inside a function are <strong>local</strong> to that function.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*anXrszEu0KZDAQsDrCIHiw.png" /><figcaption>functional scope — JS</figcaption></figure><p><strong><em>Key Insight</em></strong><em>: Each function creates a new scope.</em></p><blockquote><strong><em>Block Scope (let/const)</em></strong></blockquote><p>Variables declared with<strong> let / const</strong> inside <strong>{ }</strong> (e.g., <strong>if, for, while</strong> ) are block-scoped.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e_wfsSj0bQND6GsyshpDEg.png" /><figcaption>block scope — JS</figcaption></figure><p><strong><em>Why It Matters</em></strong><em>: Prevents accidental variable leaks (unlike </em><strong><em>var</em></strong><em>).</em></p><blockquote><strong><em>The Problem with var</em></strong></blockquote><p><strong>var</strong> ignores block scope and is function-scoped.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EPM-NrZv14CDZP95HfhJVg.png" /><figcaption>var problem — JS</figcaption></figure><p><strong><em>Best Practice</em></strong><em>: Avoid </em><strong><em>var</em></strong><em>—use </em><strong><em>let / const</em></strong><em> for predictable scoping.</em></p><h3>2. Nested Scopes &amp; Scope Chain</h3><p>JavaScript resolves variables by moving outward through nested scopes (like a “scope chain”).</p><figure><img alt="Nested Scopes &amp; Scope Chain — JS" src="https://cdn-images-1.medium.com/max/1024/1*eG5X736AyTmHJJGdtkbbvA.png" /><figcaption>Nested Scopes &amp; Scope Chain — JS</figcaption></figure><p><strong><em>How It Works:</em></strong></p><ul><li><strong>child()</strong> looks for variables in its own scope first.</li><li>If not found, it looks in <strong>parent()</strong> scope, then the global scope.</li><li>If still not found, a <strong>ReferenceError</strong> occurs.</li></ul><h3>3. Hoisting: The Two-Phase Execution</h3><p>JavaScript processes declarations <strong>before</strong> code execution.</p><blockquote><strong><em>Variable Hoisting</em></strong></blockquote><ul><li><strong>var</strong> : Hoisted and initialized with <strong>undefined</strong>.</li><li><strong>let / const</strong> : Hoisted but not initialized (temporal dead zone).</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KtL5GtcyGH7Wk-Bp6q4xgQ.png" /><figcaption>variable hoisting — JS</figcaption></figure><blockquote><strong><em>Function Hoisting</em></strong></blockquote><ul><li><strong>Function declarations</strong> are fully hoisted.</li><li><strong>Function expressions</strong> (assigned to variables) follow variable hoisting rules.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0lnPmOhpFWGq1l-TkQ1AQg.png" /><figcaption>functional hoisting — JS</figcaption></figure><h3>4. Closures: Functions With Memory</h3><p>A closure is a function that retains access to its outer scope even after the outer function has finished executing.</p><blockquote><strong><em>Closure in Action</em></strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Nwu4gr_1wN1_4qburNlw3A.png" /><figcaption>Closures — JS</figcaption></figure><p><strong><em>What’s Happening:</em></strong></p><ul><li><strong>createCounter()</strong> initializes <strong>count</strong> to <strong>0</strong>.</li><li>It returns an inner function that increments <strong>count</strong>.</li><li>The inner function “closes over” <strong>count</strong>, preserving its state between calls.</li></ul><p><strong><em>Why Closures Matter:</em></strong></p><ul><li><strong>Data Encapsulation</strong>: Create private variables (like <strong>count</strong> above).</li><li><strong>Stateful Functions</strong>: Maintain state without global variables.</li><li><strong>Event Handlers</strong>: Retain context in asynchronous operations.</li></ul><blockquote><strong><em>Real-World Closure Examples</em></strong></blockquote><h4>Example 1: Private Variables</h4><p><em>This example demonstrates how closures help create private variables in JavaScript. The </em><strong><em>createBankAccount</em></strong><em> function initializes a </em><strong><em>balance</em></strong><em> variable, which remains inaccessible from outside but can be modified through the returned methods (</em><strong><em>deposit</em></strong><em>, </em><strong><em>withdraw</em></strong><em>, and </em><strong><em>getBalance</em></strong><em>). Since the </em><strong><em>balance</em></strong><em> variable is enclosed within the function scope, external access is restricted, ensuring data encapsulation. This is useful in real-world applications like banking systems where direct access to sensitive data must be prevented.</em></p><figure><img alt="Private Variables — JS" src="https://cdn-images-1.medium.com/max/1024/1*yzp_C3uYmdyTKsAnYYe75A.png" /><figcaption>Private Variables — JS</figcaption></figure><h4>Example 2: Debounce Function</h4><p><em>The debounce function helps optimize performance by preventing a function from executing too frequently. It takes two parameters: a function (</em><strong><em>func</em></strong><em>) and a delay time (</em><strong><em>delay</em></strong><em>). A </em><strong><em>timeoutId</em></strong><em> variable is stored within the closure, ensuring that every time the returned function is called, the previous timer is cleared before setting a new one. This technique is widely used in search input fields to reduce the number of API calls by waiting until the user stops typing before executing a search query.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e-N9AcI64eeeBlSD5Jg9VQ.png" /><figcaption>Debounce Function — JS</figcaption></figure><h3>5. Hoisting in details</h3><p>Hoisting is a JavaScript mechanism where variables and function declarations are moved (“hoisted”) to the top of their scope before execution. This means that you can use variables and functions before declaring them in the code. However, how they behave depends on whether they are declared using <strong>var</strong>, <strong>let</strong>, <strong>const</strong>, or function declarations.</p><blockquote><strong><em>Hoisting with var</em></strong></blockquote><p>Variables declared with <strong>var</strong> are hoisted to the top of their scope but <strong>only the declaration is hoisted, not the initialization</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q3fxclkVbKWJknRUuxWb2Q.png" /><figcaption>Hoisting with var — JS</figcaption></figure><ul><li><em>The declaration </em><strong><em>var a;</em></strong><em> is hoisted to the top, but the assignment </em><strong><em>a = 10;</em></strong><em> remains in place.</em></li><li><em>Before initialization, </em><strong><em>a</em></strong><em> is </em><strong><em>undefined</em></strong><em> instead of causing an error.</em></li></ul><blockquote><strong><em>Hoisting with let and const</em></strong></blockquote><p>Variables declared with <strong>let</strong> and <strong>const</strong> are also hoisted but <strong>they are not initialized</strong>. Accessing them before declaration results in a <strong>ReferenceError</strong> due to the &quot;<strong><em>Temporal Dead Zone (TDZ).</em></strong>&quot;</p><figure><img alt="Hoisting with let and const — JS" src="https://cdn-images-1.medium.com/max/1024/1*A3l0tiNKM-4zcZNi41aruw.png" /><figcaption>Hoisting with let and const — JS</figcaption></figure><ul><li><em>The variables </em><strong><em>b</em></strong><em> and </em><strong><em>c </em></strong><em>exist in the &quot;</em><strong><em>Temporal Dead Zone</em></strong><em>&quot; from the start of the block until their declarations.</em></li><li><em>Unlike </em><strong><em>var</em></strong><em>, they </em><strong><em>do not get initialized</em></strong><em> with </em><strong><em>undefined</em></strong><em> and throw an error if accessed before declaration.</em></li></ul><blockquote><strong><em>Hoisting with Function Declarations</em></strong></blockquote><p>Function <strong>declarations</strong> are fully hoisted, meaning you can call the function before its declaration.</p><figure><img alt="Hoisting with Function Declarations — JS" src="https://cdn-images-1.medium.com/max/1024/1*I3BXhg0iBcfc07y-5Bnaxw.png" /><figcaption>Hoisting with Function Declarations — JS</figcaption></figure><p><em>The entire function greet is hoisted, so it can be called before its declaration.</em></p><blockquote><strong><em>Hoisting with Function Expressions</em></strong></blockquote><p>Function <strong>expressions</strong> assigned to <strong>var</strong>, <strong>let</strong>, or <strong>const</strong> behave differently. Only the variable is hoisted, <strong>not the function itself</strong>.</p><figure><img alt="Hoisting with Function Expressions — JS" src="https://cdn-images-1.medium.com/max/1024/1*shJtyDQ5CQenpmRHpCYhcw.png" /><figcaption>Hoisting with Function Expressions — JS</figcaption></figure><ul><li><em>The variable </em><strong><em>sayHello</em></strong><em> is hoisted, but it remains </em><strong><em>undefined</em></strong><em> until assigned.</em></li><li><em>Since </em><strong><em>undefined()</em></strong><em> is not a function, a </em><strong><em>TypeError</em></strong><em> occurs.</em></li></ul><p>If we use <strong>let</strong> or <strong>const</strong> instead of <strong>var</strong>, we get a <strong>ReferenceError</strong> instead because of the Temporal Dead Zone.</p><h3>Mini Projects</h3><h4>Project 1: Scope-Based Theme Toggler</h4><p><em>This project showcases block-scoped variables in a theme-switching function. The global </em><strong><em>theme</em></strong><em> variable starts as “</em><strong><em>light</em></strong><em>”, and when </em><strong><em>toggleTheme</em></strong><em> is invoked, it assigns a new theme using block-scoped variables (</em><strong><em>let</em></strong><em>). These variables exist only within their conditional blocks, ensuring that they don’t leak outside and affect the global scope. This concept is useful in scenarios where temporary variables are needed for decision-making without polluting the global namespace.</em></p><figure><img alt="Scope-Based Theme Toggler — JS" src="https://cdn-images-1.medium.com/max/1024/1*E0PNQkMvpISFtyCfJZUzTw.png" /><figcaption>Scope-Based Theme Toggler — JS</figcaption></figure><h4>Project 2: Closure-Powered Cache</h4><p><em>This project implements a simple caching system using closures. The </em><strong><em>createCache</em></strong><em> function encapsulates an internal </em><strong><em>cache</em></strong><em> object that stores key-value pairs. Since the cache remains within the function’s scope, direct modification from external code is prevented, maintaining data integrity. This technique is commonly applied in performance optimization, such as memoizing results of expensive computations like factorial calculations, Fibonacci sequences, or database queries.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mbs57GVA36kq-cg1GbcDwg.png" /><figcaption>Closure-Powered Cache — JS</figcaption></figure><h3>— — Summarize today’s learning of JS — —</h3><p>I have provided the important Key Takeaways for JavaScript Beginners from today’s JS Learnings.</p><p><strong><em>Scope Types</em></strong></p><ul><li><em>Use </em><strong><em>let / const</em></strong><em> for block scope.</em></li><li><em>Avoid </em><strong><em>var</em></strong><em> due to unintended global leaks.</em></li></ul><p><strong><em>Closure Power</em></strong></p><ul><li><em>Preserve state between function calls.</em></li><li><em>Encapsulate private data.</em></li></ul><p><strong><em>Hoisting</em></strong></p><ul><li><em>Declare variables at the </em><strong><em>top</em></strong><em> of their scope.</em></li><li><em>Prefer function declarations for </em><strong><em>hoisting</em></strong><em>.</em></li><li><em>Declare functions </em><strong><em>before using</em></strong><em> them to maintain clarity.</em></li><li><em>Understand </em><strong><em>Temporal Dead Zone (TDZ)</em></strong><em> when working with let and const.</em></li></ul><p><strong><em>Nested Scopes</em></strong></p><ul><li><em>Inner functions </em><strong><em>access outer</em></strong><em> variables via the scope chain.</em></li></ul><p>Thank you so much for reading till the last. I hope you learned something unique from this part of the JavaScript Series. You can also discover more part of this series from <a href="https://medium.com/u/5a8c20ce7a5"><strong>Abdul Rehman</strong></a> in this series and read as well.</p><p>I would love to receive/read the feedbacks, suggestions and comments from awesome tech enthusiasts and explorers.</p><p><strong>If you have any questions, feel free to reach out to me at:</strong></p><blockquote><strong><em>Website: </em></strong><a href="https://devabdulrehman.vercel.app/">https://devabdulrehman.vercel.app/</a></blockquote><blockquote><strong><em>LinkedIn:</em></strong><em> </em><a href="https://www.linkedin.com/in/abdulrehman0/">https://www.linkedin.com/in/abdulrehman0</a></blockquote><blockquote><strong><em>Twitter:</em></strong><em> </em><a href="https://twitter.com/intent/follow?screen_name=devabdulrehman">https://twitter.com/intent/follow?screen_name=devabdulrehman</a></blockquote><blockquote><strong><em>YouTube:</em></strong><em> </em><a href="https://www.youtube.com/@DevAbdulRehman?sub_confirmation=1">https://www.youtube.com/@DevAbdulRehman?sub_confirmation=1</a></blockquote><blockquote><strong><em>GitHub:</em></strong><em> </em><a href="https://github.com/abdulrehmanghub">https://github.com/abdulrehmanghub</a></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=45065d30bcf6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mastering JavaScript: A Beginner’s Guide (Part 6) | Web Development Series]]></title>
            <link>https://medium.com/@abdulrehman0/mastering-javascript-a-beginners-guide-part-6-web-development-series-4f77a761f9ae?source=rss-5a8c20ce7a5------2</link>
            <guid isPermaLink="false">https://medium.com/p/4f77a761f9ae</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Abdul Rehman]]></dc:creator>
            <pubDate>Sat, 08 Feb 2025 13:42:51 GMT</pubDate>
            <atom:updated>2025-02-08T13:59:56.080Z</atom:updated>
            <content:encoded><![CDATA[<h4>JavaScript Fundamentals: Functions in JS</h4><p>Welcome to Part 6 of our <strong>JavaScript Web Development Series</strong>! Today, we will cover the <strong>functions</strong> — the building blocks of JavaScript. Let’s explore how to create, use, and master functions with detailed explanations, real-world examples, and hands-on projects.</p><figure><img alt="Mastering JavaScript" src="https://cdn-images-1.medium.com/max/1024/1*_2rJT3j_Afq2AlrYca3DuA.png" /><figcaption>Mastering JavaScript</figcaption></figure><h3>1. What Are Functions?</h3><ul><li><em>Functions are </em><strong><em>reusable blocks of code</em></strong><em> that perform specific tasks. They help </em><strong><em>avoid repetition</em></strong><em> and </em><strong><em>organize code</em></strong><em>.</em></li><li><em>A JavaScript function is a block of code designed to perform a </em><strong><em>particular task</em></strong><em>.</em></li><li><em>A JavaScript function is executed when “something” </em><strong><em>invokes it</em></strong><em> (calls it).</em></li></ul><p><strong><em>Syntax</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iY4jHHWOj6p9mapXGoKhTg.png" /><figcaption>function syntax — JS</figcaption></figure><p><strong><em>Example</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4n28fTLfsu5bVHWlXP46kA.png" /><figcaption>function example — JS</figcaption></figure><h3>2. Parameters vs. Arguments</h3><blockquote><strong><em>Parameters</em></strong><em>: </em>Variables listed in the function definition.</blockquote><blockquote><strong><em>Arguments</em></strong><em>:</em> Actual values passed to the function.</blockquote><figure><img alt="Params and Args — JS" src="https://cdn-images-1.medium.com/max/1024/1*fzaldgUXiMK9VWdXJPEfAA.png" /><figcaption>Params and Args — JS</figcaption></figure><h3>3. The return Statement</h3><p><em>The return statement sends a value back from the function. Code after return will be ignored.</em></p><p><strong><em>Example</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Dthwlu39Of2dRK4E70y38g.png" /><figcaption>return — JS</figcaption></figure><h3>4. Handling Edge Cases</h3><blockquote><strong>Missing Arguments</strong></blockquote><p><em>If arguments are missing, parameters become undefined</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6qug8mli1mPIKaKEpNBHxg.png" /><figcaption>missing arg — JS</figcaption></figure><blockquote><strong>Solution: Default Parameters</strong></blockquote><p><em>Set the default values for parameters to fix the undefined in output.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*654yUBk109UTqhLpMenLaA.png" /><figcaption>default params — JS</figcaption></figure><h3>5. Rest Operator (…)</h3><p><em>The rest operator (…) captures multiple arguments as an </em><strong><em>array</em></strong><em>.</em></p><p><strong><em>Example</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*krp1TAqbYUP_RvnAWe3MDA.png" /><figcaption>rest operators — JS</figcaption></figure><h3>6. Functions with Objects &amp; Arrays</h3><blockquote><strong>Passing Objects</strong></blockquote><figure><img alt="passing Obj — JS" src="https://cdn-images-1.medium.com/max/1024/1*oiOH5spr94KQMh4iKtFfHg.png" /><figcaption>passing Obj — JS</figcaption></figure><blockquote><strong><em>Passing Arrays</em></strong></blockquote><figure><img alt="passing Arrays — JS" src="https://cdn-images-1.medium.com/max/1024/1*E1jTc1MXIb3cptEY9WoACQ.png" /><figcaption>passing Arrays — JS</figcaption></figure><h3>7. Arrow Functions</h3><p><em>Arrow functions provide a shorter syntax for writing functions.</em></p><p><strong><em>Syntax</em></strong></p><figure><img alt="arrow functions — JS" src="https://cdn-images-1.medium.com/max/1024/1*k7-31fX5s3NrJeU152DrCQ.png" /><figcaption>arrow functions — JS</figcaption></figure><p><strong><em>Example</em></strong></p><figure><img alt="arrow functions example- JS" src="https://cdn-images-1.medium.com/max/1024/1*eH6dLadzk0OP_5BSh6Bp4A.png" /><figcaption>arrow functions example— JS</figcaption></figure><h3>8. this Keyword</h3><p><em>In regular functions, </em><strong><em>this</em></strong><em> keyword refers to the </em><strong><em>object calling the function</em></strong><em>.</em></p><p><em>In arrow functions, </em><strong><em>this</em></strong><em> refers to the </em><strong><em>global/window object</em></strong><em>.</em></p><p><strong><em>Example</em></strong></p><figure><img alt="this keyword — JS" src="https://cdn-images-1.medium.com/max/1024/1*AwZ_WZQK7jLafm_bXTGs2A.png" /><figcaption>this keyword — JS</figcaption></figure><h4>Mini Projects</h4><blockquote><strong><em>Project 1: Login/Logout System</em></strong></blockquote><p><em>The </em><strong><em>Login/Logout System</em></strong><em> is a simple JavaScript project that demonstrates basic function usage and default parameters. The </em><strong><em>login</em></strong><em> function takes a </em><strong><em>username</em></strong><em> as an argument and returns a message confirming that the user has logged in. If no username is provided, it defaults to &quot;Guest.&quot;</em></p><p><em>The </em><strong><em>logout</em></strong><em> function checks if a username is provided before displaying a logout message; otherwise, it prompts the user to enter a valid name. This project showcases fundamental programming concepts like function parameters, default values, and conditional statements in JavaScript.</em></p><figure><img alt="login / logout system — JS" src="https://cdn-images-1.medium.com/max/1024/1*_l9tKkhwXSB_A1JZtY9Xww.png" /><figcaption>login / logout system — JS</figcaption></figure><blockquote><strong><em>Project 2: Shopping Cart Calculator</em></strong></blockquote><p><em>The </em><strong><em>Shopping Cart Calculator</em></strong><em> is a JavaScript function designed to calculate the total price of items in a shopping cart. It utilizes the rest parameter (</em><strong><em>…prices</em></strong><em>) to accept multiple price values as arguments. The function then applies the </em><strong><em>reduce()</em></strong><em> method to sum up all the prices and return the total cost.</em></p><p><em>This project highlights the use of JavaScript&#39;s spread/rest operator, higher-order functions, and array manipulation, making it useful for e-commerce applications where total cart values need to be dynamically calculated.</em></p><figure><img alt="shopping cart calculator — JS" src="https://cdn-images-1.medium.com/max/1024/1*9RUDWtTut_lEhTMRMRb0jw.png" /><figcaption>shopping cart calculator — JS</figcaption></figure><h3>— — Summarize today’s learning of JS — —</h3><p>I have provided the important Key Takeaways for JavaScript Beginners from today’s JS Learnings.</p><ul><li><em>Use </em><strong><em>parameters</em></strong><em> for input flexibility, </em><strong><em>arguments</em></strong><em> for actual values.</em></li><li><em>Always use </em><strong><em>return</em></strong><em> to send a value back from a function.</em></li><li><strong><em>Default parameters</em></strong><em> prevent undefined errors.</em></li><li><strong><em>Rest operator (…)</em></strong><em> handles multiple arguments as an array.</em></li><li><strong><em>Arrow functions</em></strong><em> have shorter syntax but behave differently with this.</em></li><li><em>Use </em><strong><em>this</em></strong><em> keyword carefully — regular functions vs. arrow functions.</em></li></ul><p>Thank you so much for reading till the last. I hope you learned something unique from this part of the JavaScript Series. You can also discover more part of this series from <a href="https://medium.com/u/5a8c20ce7a5"><strong><em>Abdul Rehman</em></strong></a> in this series and read as well.</p><p>I would love to receive/read the feedbacks, suggestions and comments from awesome tech enthusiasts and explorers.</p><p><strong>If you have any questions, feel free to reach out to me at:</strong></p><blockquote><strong><em>Website: </em></strong><a href="https://devabdulrehman.vercel.app/">https://devabdulrehman.vercel.app/</a></blockquote><blockquote><strong><em>LinkedIn:</em></strong><em> </em><a href="https://www.linkedin.com/in/abdulrehman0/">https://www.linkedin.com/in/abdulrehman0</a></blockquote><blockquote><strong><em>Twitter:</em></strong><em> </em><a href="https://twitter.com/intent/follow?screen_name=devabdulrehman">https://twitter.com/intent/follow?screen_name=devabdulrehman</a></blockquote><blockquote><strong><em>YouTube:</em></strong><em> </em><a href="https://www.youtube.com/@DevAbdulRehman?sub_confirmation=1">https://www.youtube.com/@DevAbdulRehman?sub_confirmation=1</a></blockquote><blockquote><strong><em>GitHub:</em></strong><em> </em><a href="https://github.com/abdulrehmanghub">https://github.com/abdulrehmanghub</a></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4f77a761f9ae" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mastering JavaScript: A Beginner’s Guide (Part 5) | Web Development Series]]></title>
            <link>https://medium.com/@abdulrehman0/mastering-javascript-a-beginners-guide-part-5-web-development-series-f22a531e4038?source=rss-5a8c20ce7a5------2</link>
            <guid isPermaLink="false">https://medium.com/p/f22a531e4038</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[arrays]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[front-end-development]]></category>
            <dc:creator><![CDATA[Abdul Rehman]]></dc:creator>
            <pubDate>Thu, 06 Feb 2025 17:58:57 GMT</pubDate>
            <atom:updated>2025-02-06T17:58:57.029Z</atom:updated>
            <content:encoded><![CDATA[<h4>JavaScript Fundamentals: Arrays and Objects with Projects</h4><p>Welcome to Part 5 of our <strong>JavaScript Web Development Series</strong>! Today, we are diving into two major concepts of Programming, <strong>arrays</strong> <strong>—</strong> a core data structure for storing collections of data, and <strong>objects — </strong>containers for properties and methods. Let’s learn how to create, manipulate, and master arrays and objects with practical examples and fun projects.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_2rJT3j_Afq2AlrYca3DuA.png" /><figcaption>Mastering JavaScript</figcaption></figure><h3>Arrays in JavaScript</h3><p><em>Arrays are ordered lists that store multiple values (numbers, strings, objects, etc.) in a single variable.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Leq-kMFgi30SU9HSB691Lg.png" /><figcaption>arrays — JS</figcaption></figure><h4>1. Basic Array Methods</h4><blockquote><strong>Add/Remove Elements</strong></blockquote><p><strong>push():</strong> Add elements to the <strong>end</strong>.</p><p><strong>pop():</strong> Remove the <strong>last</strong> element.</p><p><strong>unshift():</strong> Add elements to the <strong>start</strong>.</p><p><strong>shift():</strong> Remove the <strong>first</strong> element.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-gu2RChaAphzGVamzhiGIA.png" /><figcaption>basic arrays methods — JS</figcaption></figure><blockquote><strong>Check Elements</strong></blockquote><p><strong>includes():</strong> Check if a value exists (true/false).</p><p><strong>indexOf():</strong> Get the index of a value (returns -1 if not found).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8z-BV0wNcoLU_tshUtF0Jw.png" /><figcaption>check elements — JS</figcaption></figure><blockquote>Convert to String</blockquote><p><strong>join():</strong> Convert array to a string (elements separated by commas).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Xc5Hkg0YQohdWwHL2DQnsg.png" /><figcaption>convert to str — JS</figcaption></figure><h4>2. Slice vs Splice Method</h4><p>The slice() method is used to copy a portion of an array <strong>without modifying the original array</strong>. It returns a new array containing the selected elements. On the other hand, the splice() method is used to <strong>remove, replace, or add elements</strong> in an array, directly modifying the original array. While slice() is useful for extracting data without changes, splice() is ideal for making modifications within an array.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r4DNuptugz3Tl6wjAg2Z_Q.png" /><figcaption>slice and splice methods — JS</figcaption></figure><h4>3. Merging Array Methods</h4><p><strong>concat():</strong> Combines arrays into a new array.</p><p><strong>Spread Operator(…):</strong> Modern, cleaner syntax.</p><figure><img alt="concat and spread — JS" src="https://cdn-images-1.medium.com/max/1024/1*RhTeo7eJKrtHclmvWQwGvA.png" /><figcaption>concat and spread — JS</figcaption></figure><h4>4. Handling Nested Arrays</h4><p>Use <strong>flat()</strong> to flatten nested arrays (specify depth or Infinity).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HtDRV0zKntJEC1-YpgHYzw.png" /><figcaption>nested array — JS</figcaption></figure><h4>5. Utility Methods</h4><p><strong>Array.isArray():</strong> Check if a variable is an array.</p><p><strong>Array.from():</strong> Convert iterables (e.g., strings) to arrays.</p><p><strong>Array.of():</strong> Create arrays from variables.</p><figure><img alt="utility methods — JS" src="https://cdn-images-1.medium.com/max/1024/1*JGPQQ45Mz54f6H9emQpmtg.png" /><figcaption>utility methods — JS</figcaption></figure><h3>Mini Project: Shopping Cart Manager</h3><p>We will now learn more about arrays, arrays method, object manipulation and also a little about function by creating this simple project.</p><p><strong><em>Note:</em></strong><em> We’ve not covered the function topic yet, but we will cover the function concepts in depth in the next part of this web development javasacript — series. So, don’t worry if you’re not fully understand functions in JavaScript now. We will cover the function topic very soon.</em></p><p>For now, we should know about the function <em>“</em><strong><em>A JavaScript function is a block of code designed to perform a particular task</em></strong><em>. A JavaScript function is executed when “something” invokes it (calls it).”</em></p><p><strong>Syntax of function.</strong></p><p><em>function funcName(){</em></p><p><em>// write code here</em></p><p><em>}</em></p><p><strong>Explanation</strong></p><p><em>This project represents a </em><strong><em>simple shopping cart system</em></strong><em> using JavaScript. It maintains an empty cart array and a total variable to track the overall cost. The </em><strong><em>addItem()</em></strong><em> function allows users to add items by pushing an object </em><strong><em>{item, price}</em></strong><em> into the cart array and updating the total cost. The </em><strong><em>removeItem()</em></strong><em> function searches for an item in the cart using </em><strong><em>findIndex()</em></strong><em>, and if found, it subtracts the item&#39;s price from the total and removes it from the cart using </em><strong><em>splice()</em></strong><em>.</em></p><p><em>The example usage adds a </em><strong><em>Shirt ($20)</em></strong><em> and </em><strong><em>Shoes ($50)</em></strong><em> to the cart, then removes the </em><strong><em>Shirt</em></strong><em>, updating the total accordingly. Finally, the console.log() statements display the updated cart and total cost. This project helps in understanding </em><strong><em>arrays, functions, object manipulation, and array methods</em></strong><em> like push(), splice(), and findIndex().</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dI-h9siiX6_5UftFnTe6nw.png" /><figcaption>shopping cart manager — JS</figcaption></figure><p>Its time to cover the objects in JavaScript. <strong>Objects</strong> — the backbone of JavaScript for organizing structured data. Lets explore how to create, manipulate, and use objects like a pro, with real-world examples and a hands-on project.</p><h3>Objects in JavaScript</h3><p>Objects store key-value pairs to represent real-world entities (e.g., users, products).</p><p><strong>Keys:</strong> Unique identifiers (strings or symbols).</p><p><strong>Values:</strong> Data (numbers, strings, functions, etc.).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Sn6ZgpHRE-5kKr-dmLNtHw.png" /><figcaption>objects — JS</figcaption></figure><h4><strong>1. Creating Objects</strong></h4><blockquote>Object Literals</blockquote><p>Most common method (non-singleton).</p><figure><img alt="common method of object — JS" src="https://cdn-images-1.medium.com/max/1024/1*DTyEzS7qLSVFvL4_Qwj6Uw.png" /><figcaption>common method of object — JS</figcaption></figure><blockquote>Singleton Objects</blockquote><p>Created using new Object().</p><figure><img alt="using new Object — JS" src="https://cdn-images-1.medium.com/max/1024/1*ub6rGFnUE5a33S1q9j_Zug.png" /><figcaption>using new Object — JS</figcaption></figure><h4>2. Accessing Object Properties</h4><blockquote>Dot Notation</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SLLFGMJ1DXw_Zqsbjmiw7g.png" /></figure><blockquote>Square Brackets</blockquote><p>Use Case: For keys with spaces or dynamic keys.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uk1S85AOMKHmvCdY_sbbqA.png" /></figure><h4>3. Symbols in Objects</h4><p>Symbols are unique and avoid naming collisions.</p><blockquote>Correct Way to Use Symbols</blockquote><figure><img alt="Correct Way of Symbols — JS" src="https://cdn-images-1.medium.com/max/1024/1*wyRk_oN9ZCfx5faSLAh46A.png" /><figcaption>correct way of Symbol — JS</figcaption></figure><blockquote>Wrong Way</blockquote><figure><img alt="wrong way of using Symbol- JS" src="https://cdn-images-1.medium.com/max/1024/1*pkLRBZ4cClXgPSH1g6Dn_Q.png" /><figcaption>wrong way of using Symbol— JS</figcaption></figure><h4>4. Modifying Objects</h4><blockquote>Update Properties</blockquote><figure><img alt="update properties — JS" src="https://cdn-images-1.medium.com/max/1024/1*sCt91qDOihbYAhJYFUXy0w.png" /><figcaption>update properties — JS</figcaption></figure><blockquote>Freeze Objects</blockquote><p>Object.freeze() prevents changes.</p><figure><img alt="freeze object — JS" src="https://cdn-images-1.medium.com/max/1024/1*8LVSpH2rhfzuZq5QxzJeew.png" /><figcaption>freeze object — JS</figcaption></figure><h4>5. Object Methods</h4><p>Add functions to objects for actions.</p><blockquote>Basic Method</blockquote><figure><img alt="basic method obj- JS" src="https://cdn-images-1.medium.com/max/1024/1*ZBG7IpJnTTzFEpxelkKRDA.png" /><figcaption>basic method obj— JS</figcaption></figure><blockquote>Using this Keyword</blockquote><p>this refers to the current object.</p><figure><img alt="object access using this — JS" src="https://cdn-images-1.medium.com/max/1024/1*9uhFtNi0DOmd3vf9Mcpm2g.png" /><figcaption>object access using this — JS</figcaption></figure><h4>6. Combining Objects</h4><blockquote>Method 1: Object.assign()</blockquote><figure><img alt="Object.assign() — JS" src="https://cdn-images-1.medium.com/max/1024/1*ykyZiLkcnLoeAYX8SlcwIg.png" /><figcaption>Object.assign() — JS</figcaption></figure><blockquote>Method 2: Spread Operator (…)</blockquote><figure><img alt="Spread Operator — JS" src="https://cdn-images-1.medium.com/max/1024/1*IjTYxc-ZXORfsKV3m1tvXQ.png" /><figcaption>Spread Operator — JS</figcaption></figure><h4>7. Nested Objects</h4><p>Objects can contain other objects.</p><p><em>Example</em></p><figure><img alt="nested objects — JS" src="https://cdn-images-1.medium.com/max/1024/1*ERVP9PMCCTzp8u42XPNKjA.png" /><figcaption>nested objects — JS</figcaption></figure><h4>8. Object Utility Methods</h4><blockquote>Get Keys/Values/Entries</blockquote><figure><img alt="access Keys/Values/Entries — JS" src="https://cdn-images-1.medium.com/max/1024/1*jO7XD8XnR7L65RiKKgk8ZA.png" /><figcaption>access Keys/Values/Entries — JS</figcaption></figure><blockquote>Check Property Existence</blockquote><figure><img alt="check property — JS" src="https://cdn-images-1.medium.com/max/1024/1*RqMDMgf6jLAiwu0JGLEsJw.png" /><figcaption>check property — JS</figcaption></figure><h4>9. Object Destructuring</h4><p>Extract values into variables easily.</p><blockquote>Basic Destructuring</blockquote><figure><img alt="Basic Destructuring — JS" src="https://cdn-images-1.medium.com/max/1024/1*dHEm3LNYZHNduQE9pX2GAw.png" /><figcaption>Basic Destructuring — JS</figcaption></figure><blockquote>Renaming Variables</blockquote><figure><img alt="Renaming Variables — JS" src="https://cdn-images-1.medium.com/max/1024/1*Op7zIFVKc2gmPbJdCtPW9g.png" /><figcaption>Renaming Variables — JS</figcaption></figure><h4>10. JSON &amp; APIs</h4><p>JSON (JavaScript Object Notation) is used to send/receive data in APIs.</p><p><em>JSON Example</em></p><figure><img alt="JSON — JS" src="https://cdn-images-1.medium.com/max/1024/1*n5arFPeviojp5NoKnVDIDQ.png" /><figcaption>JSON — JS</figcaption></figure><h3>Mini Project: Simple Student List</h3><p>This simple project stores student information using an array of objects, where each object contains a student’s <strong>name</strong> and <strong>age</strong>. The <strong>forEach()</strong> method is used to loop through the array and display each student&#39;s details. Finally, the student list is printed using <strong>console.log()</strong>. This approach makes it easy to manage and display structured data in JavaScript, making it a great starting point for beginners.</p><figure><img alt="Project — Student List" src="https://cdn-images-1.medium.com/max/1024/1*F-ebYhukwbL2g4E9Sz02Cw.png" /><figcaption>Project — Student List</figcaption></figure><h3>— — Summarize today’s learning of JS — —</h3><p>I have provided the important Key Takeaways for JavaScript Beginners from today’s JS Learnings.</p><ul><li>Use <strong>push()</strong> / <strong>pop()</strong> for stack-like operations.</li><li><strong>slice()</strong> copies and <strong>splice()</strong> modifies the original array.</li><li>Prefer the <strong>spread operator</strong> over <strong>concat()</strong> for merging.</li><li>Flatten nested arrays with <strong>flat()</strong>.</li><li>Convert strings / objects to arrays with <strong>Array.from()</strong>.</li><li>Use <strong>dot notation</strong> for simple keys, square brackets for dynamic/spaced keys.</li><li><strong>Symbols</strong> ensure unique keys — declare with [].</li><li><strong>Object.freeze()</strong> locks objects from changes.</li><li><strong>Destructuring</strong> simplifies value extraction.</li><li><strong>Object.keys() / Object.values()</strong> convert objects to arrays for iteration.</li><li><strong>JSON</strong> is the standard for API data exchange.</li></ul><p>Thank you so much for reading till the last. I hope you learned something unique from this part of the JavaScript Series. You can also discover more part of this series from <a href="https://medium.com/u/5a8c20ce7a5">Abdul Rehman</a> in this series and read as well.</p><p>I would love to receive/read the feedbacks, suggestions and comments from awesome tech enthusiasts and explorers.</p><p><strong>If you have any questions, feel free to reach out to me at:</strong></p><blockquote><strong><em>Website: </em></strong><a href="https://devabdulrehman.vercel.app/">https://devabdulrehman.vercel.app/</a></blockquote><blockquote><strong><em>LinkedIn:</em></strong><em> </em><a href="https://www.linkedin.com/in/abdulrehman0/">https://www.linkedin.com/in/abdulrehman0</a></blockquote><blockquote><strong><em>Twitter:</em></strong><em> </em><a href="https://twitter.com/intent/follow?screen_name=devabdulrehman">https://twitter.com/intent/follow?screen_name=devabdulrehman</a></blockquote><blockquote><strong><em>YouTube:</em></strong><em> </em><a href="https://www.youtube.com/@DevAbdulRehman?sub_confirmation=1">https://www.youtube.com/@DevAbdulRehman?sub_confirmation=1</a></blockquote><blockquote><strong><em>GitHub:</em></strong><em> </em><a href="https://github.com/abdulrehmanghub">https://github.com/abdulrehmanghub</a></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f22a531e4038" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mastering JavaScript: A Beginner’s Guide (Part 4) | Web Development Series]]></title>
            <link>https://medium.com/@abdulrehman0/mastering-javascript-a-beginners-guide-part-3-web-development-series-50988b0bda5a?source=rss-5a8c20ce7a5------2</link>
            <guid isPermaLink="false">https://medium.com/p/50988b0bda5a</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[design]]></category>
            <dc:creator><![CDATA[Abdul Rehman]]></dc:creator>
            <pubDate>Wed, 05 Feb 2025 13:32:41 GMT</pubDate>
            <atom:updated>2025-02-05T13:46:45.934Z</atom:updated>
            <content:encoded><![CDATA[<h4>JavaScript Fundamentals: Loops and Conditions with Projects</h4><p>Welcome to Part 4 of our <strong>JavaScript Web Development Series</strong>! Today, we are going to explore <strong>loops</strong> — a fundamental concept for automating repetitive tasks. Whether you’re processing data, iterating through arrays, or building dynamic features, loops are your best friend. Let’s break down each loop type, their use cases, and best practices.</p><p><strong><em>Note:</em></strong><em> Today we are covering the basic loops like for, while etc. There are many more ways which are called methods of Array like map, forEach etc. We will cover the advance looping methods with arrays and other topic. I’ve also discussed the for in and for of loops in short for now as well but we will see these two in advance topics as well.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_2rJT3j_Afq2AlrYca3DuA.png" /><figcaption>Mastering JavaScript</figcaption></figure><h3>1. What Are Loops?</h3><p>Loops are used in programming <strong>to repeat</strong> a block of code multiple times until a certain condition is met. They help automate tasks, making code more efficient and reducing repetition. Common types of loops include <strong>for</strong>, <strong>while</strong>, and <strong>do while</strong>, each suited for different situations. Loops are especially useful for working with arrays, processing user input, and running code until a desired result is achieved.</p><h3>2. Types of Loops</h3><blockquote>for loop</blockquote><p><strong>Syntax</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q4CCBuGy0-ip7FxGjdaaCQ.png" /><figcaption>for syntax — JS</figcaption></figure><p><strong>Use Case</strong>: When we know <strong>how many times</strong> the loop should run (e.g., iterating through an array).</p><p><em>Example</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y5_EhiQz-JDije08AQuCNw.png" /><figcaption>for usecase — JS</figcaption></figure><blockquote>while Loop</blockquote><p><strong>Syntax</strong></p><figure><img alt="while syntax — JS" src="https://cdn-images-1.medium.com/max/1024/1*KqyL1BOv_N6n80TrNwjR1g.png" /><figcaption>while syntax — JS</figcaption></figure><p><strong>Use Case</strong>: When the number of iterations is <strong>unknown</strong> (e.g., user input validation).</p><p><em>Example</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s2BYTfOdsecvQOmdbAXFcQ.png" /><figcaption>while usecase — JS</figcaption></figure><blockquote>do while Loop</blockquote><p><strong>Syntax</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5JsORZXQvKk8lqKHijZoFg.png" /><figcaption>do while syntax — JS</figcaption></figure><p><strong>Use Case</strong>: When the code <strong>must run at least once</strong> (e.g., displaying a menu).</p><p><em>Example</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8mtiV0YHNL2nmUn3SgazpA.png" /><figcaption>do while usecase — JS</figcaption></figure><blockquote>for in Loop</blockquote><p><strong>Syntax</strong></p><figure><img alt="for in syntax — JS" src="https://cdn-images-1.medium.com/max/1024/1*CemoLYGfzXtE-czYkvLjLg.png" /><figcaption>for in syntax — JS</figcaption></figure><p><strong>Use Case</strong>: Iterating over <strong>object properties</strong>.</p><p><strong>Avoid</strong>: Using with arrays (it iterates over indexes, not values).</p><p><em>Example</em></p><figure><img alt="for in usecase — JS" src="https://cdn-images-1.medium.com/max/1024/1*ZgJGsPsMrwxUG-g9fL2GEQ.png" /><figcaption>for in usecase — JS</figcaption></figure><blockquote>for of Loop</blockquote><p><strong>Syntax</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Pu9M1LkwMi7blK0AjQhAtA.png" /><figcaption>for of syntax — JS</figcaption></figure><p><strong>Use Case</strong>: Iterating over <strong>arrays, strings, or other iterables</strong>.</p><p><em>Example</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ft2wzKrnOt30_OHTW1F37w.png" /><figcaption>for of usecase — JS</figcaption></figure><h3>3. Which Loop to Use?</h3><ul><li><em>Use a </em><strong><em>for</em></strong><em> loop when the number of iterations is known, such as iterating through arrays or counting.</em></li><li><em>Use a </em><strong><em>while</em></strong><em> loop when the number of iterations is unknown, like waiting for user input.</em></li><li><em>A </em><strong><em>do while</em></strong><em> loop is useful when the code must run at least once before checking a condition but can add unnecessary complexity.</em></li><li><em>Use </em><strong><em>for in</em></strong><em> to loop through object properties but avoid it for arrays (use </em><strong><em>for of</em></strong><em> instead).</em></li><li><em>The </em><strong><em>for of </em></strong><em>loop is best for iterating over arrays, strings, and other iterables but should not be used for objects.</em></li></ul><h4>Project using Loops (<strong>Multiplication Table Generator)</strong></h4><p>This will print the table on the console using a <strong>for loop</strong>. The <strong>prompt()</strong> is used to get value from the user.</p><p><em>For example if user write 3 in prompt it will print the table of 3.</em></p><p><strong><em>3 x 1 = 3</em></strong><em> and so on upto</em><strong><em> 3 x 10 = 30</em></strong><em>.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MPttFjBYQ0c-qDGz8U5G6Q.png" /><figcaption>Math Table Print — JS</figcaption></figure><h3>4. JavaScript Conditions</h3><blockquote>if Statement</blockquote><p>The if statement runs code <strong>only if</strong> a condition is true.</p><p>Since the condition is true so, the output will be “<strong>You are an adult.</strong>”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BVD9PWFbdeIjQfXtW3_m5Q.png" /><figcaption>if — JS</figcaption></figure><blockquote>if else Statement</blockquote><p>The else block runs when the if condition is false.</p><p>This is will run the else part because condition is not true.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Fewg2NS-XjuaBaFZ2BmHfA.png" /><figcaption>if else — JS</figcaption></figure><blockquote>if else if Statement</blockquote><p>Use if else, else if, else to check multiple conditions. We can extend it to as many conditions as we need.</p><p>This will print “<strong>Grade: B</strong>” because the if condition is false and else if condition is true. So, it will print the true condition.</p><figure><img alt="if else if — JS" src="https://cdn-images-1.medium.com/max/1024/1*9r3ZiGY6iqpGlVaRjx-G5Q.png" /><figcaption>if else if — JS</figcaption></figure><blockquote>switch Statement</blockquote><p>The switch statement is used for <strong>multiple choices</strong>.</p><p>In this scenario the case 3 will be print i.e, “<strong>Wednesday</strong>” because other cases not meet the condition.</p><p><strong>Break</strong> statement is used to stop the checking process if condition true is found. If in any case all the conditions are false then the <strong>default</strong> statement will run.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XJNoBGugUwxbgQ4WV2wCCw.png" /><figcaption>switch — JS</figcaption></figure><h4>Project using Conditions (Even/Odd Check)</h4><p>This project asks the user to enter a number and tells if it’s <strong>even or odd</strong>. The <strong>prompt()</strong> is used to get value from the user. If user provided 2 in the prompt then the output will be “<strong>2 is Even.</strong>”</p><figure><img alt="Event Odd Checker — JS" src="https://cdn-images-1.medium.com/max/1024/1*vl9kbAGACIIPiu1W8jDd7w.png" /><figcaption>Event Odd Checker — JS</figcaption></figure><h3>— — Summarize today’s learning of JS — —</h3><p>I have provided the important Key Takeaways for JavaScript Beginners from today’s JS Learnings.</p><ul><li><em>Use </em><strong><em>for </em></strong><em>loop for arrays when the length is known.</em></li><li><em>Use </em><strong><em>while</em></strong><em> for conditions checked before execution.</em></li><li><em>Use </em><strong><em>do while</em></strong><em> for conditions checked after execution.</em></li><li><em>Avoid </em><strong><em>for in</em></strong><em> for arrays — it’s slower and less intuitive.</em></li><li><em>Prefer </em><strong><em>for of</em></strong><em> for arrays and strings (cleaner syntax).</em></li><li><strong><em>if e</em></strong><em>xecutes code only if the condition is true</em></li><li><strong><em>if else</em></strong><em> runs one block if true, another if false.</em></li><li><strong><em>if else if c</em></strong><em>hecks multiple conditions in order.</em></li><li><strong><em>switch</em></strong><em> is best for multiple fixed options.</em></li></ul><p>Thank you so much for reading till the last. I hope you learned something unique from this part of the JavaScript Series. You can also discover more part of this series from <a href="https://medium.com/u/5a8c20ce7a5">Abdul Rehman</a> in this series and read as well.</p><p>I would love to receive/read the feedbacks, suggestions and comments from awesome tech enthusiasts and explorers.</p><p><strong>If you have any questions feel free to reach out to me at:</strong></p><blockquote><strong><em>Website: </em></strong><a href="https://devabdulrehman.vercel.app/">https://devabdulrehman.vercel.app/</a></blockquote><blockquote><strong><em>LinkedIn:</em></strong><em> </em><a href="https://www.linkedin.com/in/abdulrehman0/">https://www.linkedin.com/in/abdulrehman0</a></blockquote><blockquote><strong><em>Twitter:</em></strong><em> </em><a href="https://twitter.com/intent/follow?screen_name=devabdulrehman">https://twitter.com/intent/follow?screen_name=devabdulrehman</a></blockquote><blockquote><strong><em>YouTube:</em></strong><em> </em><a href="https://www.youtube.com/@DevAbdulRehman?sub_confirmation=1">https://www.youtube.com/@DevAbdulRehman?sub_confirmation=1</a></blockquote><blockquote><strong><em>GitHub:</em></strong><em> </em><a href="https://github.com/abdulrehmanghub">https://github.com/abdulrehmanghub</a></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=50988b0bda5a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mastering JavaScript: A Beginner’s Guide (Part 3) | Web Development Series]]></title>
            <link>https://medium.com/@abdulrehman0/mastering-javascript-a-beginners-guide-part-3-web-development-series-64d34994219e?source=rss-5a8c20ce7a5------2</link>
            <guid isPermaLink="false">https://medium.com/p/64d34994219e</guid>
            <category><![CDATA[web3]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Abdul Rehman]]></dc:creator>
            <pubDate>Tue, 04 Feb 2025 07:55:28 GMT</pubDate>
            <atom:updated>2025-02-04T07:55:28.594Z</atom:updated>
            <content:encoded><![CDATA[<h4>JavaScript Fundamentals: Dates and Time</h4><p>Welcome to Part 3 of our <strong>JavaScript Web Development Series</strong>! Today, we’re diving into <strong>dates and time</strong> in JavaScript. Whether you’re building a calendar, scheduling events, or just displaying the current date, understanding how to work with dates is essential. Let’s explore everything from creating dates to formatting and manipulating them.</p><p><strong><em>Note:</em></strong><em> The examples showing the date of February 04, 2025. The time and date will shown differently to you according to the exact date and time but the methods will be same.</em></p><figure><img alt="Mastering JavaScript" src="https://cdn-images-1.medium.com/max/1024/1*_2rJT3j_Afq2AlrYca3DuA.png" /><figcaption>Mastering JavaScript</figcaption></figure><p>Before jumping to the Date and Time in JavaScript. There is a short history of JavaScript Date and Time. We must know it before covering the today’s topic.</p><blockquote><em>A JavaScript date is fundamentally specified as the time in milliseconds that has elapsed since the epoch, which is defined as the midnight at the beginning of </em><strong><em>January 01, 1970, UTC</em></strong><em> (equivalent to the UNIX epoch). This timestamp is timezone-agnostic and uniquely defines an instant in history.</em></blockquote><h3>1. Creating Dates</h3><p>JavaScript provides the Date object to work with dates and times. We can create a date in multiple ways</p><blockquote>Current Date and Time</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9MQgWgX8ZyjCuPnyqn0kxg.png" /><figcaption>new date — JS</figcaption></figure><blockquote>Specific Date and Time</blockquote><p>We can create a date for a specific day, month, year, or even time</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gNyc4BOO8nhiPibaDJ4R4w.png" /><figcaption>specific date and time — JS</figcaption></figure><h3>2. Formatting Dates</h3><p>JavaScript offers multiple methods to format dates for display</p><blockquote>Common Formats</blockquote><p><strong>toDateString()</strong>: Converts to a readable date string.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fDdtUbBMZqM-ZqJYAGaScg.png" /><figcaption>toDatSstring — JS</figcaption></figure><p><strong>toLocaleString()</strong>: Converts to a localized date and time.</p><figure><img alt="tolocalestring — js" src="https://cdn-images-1.medium.com/max/1024/1*Z1c5ROfG1fOCR0Ii0Vwszg.png" /><figcaption>toLocaleString — JS</figcaption></figure><p><strong>toLocaleDateString()</strong>: Displays only the date.</p><figure><img alt="toLocaleDateString — JS" src="https://cdn-images-1.medium.com/max/1024/1*79gUilHpoybE7CPEHFtZJA.png" /><figcaption>toLocaleDateString — JS</figcaption></figure><p><strong>toLocaleTimeString()</strong>: Displays only the time.</p><figure><img alt="toLocaleTimeString — JS" src="https://cdn-images-1.medium.com/max/1024/1*qaVu3iLcdsdjh_0Z4k-a2Q.png" /><figcaption>toLocaleTimeString — JS</figcaption></figure><p><strong>toJSON()</strong>: Converts to ISO format (useful for APIs).</p><figure><img alt="toJSON — JS" src="https://cdn-images-1.medium.com/max/1024/1*pqWhzsbsdV5FRaIPBBo_8Q.png" /><figcaption>toJSON — JS</figcaption></figure><h3>3. Extracting Date Components</h3><p>We can extract specific parts of a date, such as the day, month, or year</p><blockquote>Common Methods</blockquote><p><strong><em>getDate()</em></strong><em>: Returns the day of the month (1–31).</em></p><p><strong><em>getMonth()</em></strong><em>: Returns the month (0–11). </em><strong><em>Note</em></strong><em>: Months are 0-based (January = 0 and December = 11).</em></p><p><strong><em>getFullYear()</em></strong><em>: Returns the full year (e.g., 2025).</em></p><p><strong><em>getDay()</em></strong><em>: Returns the day of the week (0–6, Sunday = 0).</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gdebDVgE1kN0xD95xiNz3w.png" /><figcaption>Common Date Methods — JS</figcaption></figure><blockquote>Dynamic Date String</blockquote><p>Create a custom date string using template literals</p><figure><img alt="Dynamic Date String — JS" src="https://cdn-images-1.medium.com/max/1024/1*jamcfxZTghKSSVXOvOGEXg.png" /><figcaption>Dynamic Date String — JS</figcaption></figure><h3>4. Working with Time</h3><p>JavaScript also allows us to work with time components</p><blockquote>Current Timestamp</blockquote><p><strong>Date.now()</strong>: Returns the current timestamp in milliseconds.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kAgenPtjYt6eFRPHuusFeA.png" /><figcaption>date Now — JS</figcaption></figure><blockquote><strong>Convert to Seconds</strong></blockquote><p>We can simply divide the date of now by 1,000 to get seconds.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GC0t_tdlMiM_h5xC8C6IPg.png" /><figcaption>Convert to Seconds — JS</figcaption></figure><h3>5. Customizing Date Formats</h3><p>Use toLocaleString() with options to customize date and time formats</p><blockquote>Example 1: Long Weekday</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qTgh3eDybQccKhk024U1nw.png" /><figcaption>Long Day — JS</figcaption></figure><blockquote>Example 2: Full Date and Time</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9JgjLSRmCeNXjGawCas6Mw.png" /><figcaption>Full Date and Time — JS</figcaption></figure><h3>6. Date Manipulation</h3><p>Add or subtract days, months, or years using the set methods</p><blockquote>Example: Adding Days</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9QLeGSgrFlabzCVI0neN2Q.png" /><figcaption>adding days — JS</figcaption></figure><blockquote>Example: Subtracting Months</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7-Ek199chfm__4GU7psyEA.png" /><figcaption>Subtracting Month — JS</figcaption></figure><h3>7. Fun with Dates</h3><blockquote>Countdown Timer</blockquote><p>Create a countdown to a specific date</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_wn--OLz9QqunX7iwzwSmw.png" /><figcaption>Countdown Timer — JS</figcaption></figure><blockquote>Age Calculator</blockquote><p>Calculate someone’s age</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mQNSYlJsFW3vBkCQYwthng.png" /><figcaption>Age Calculator — JS</figcaption></figure><h3>— — Summarize today’s learning of JS — —</h3><p>I have provided the important Key Takeaways for JavaScript Beginners from today’s JS Learnings.</p><ul><li><em>Use </em><strong><em>new Date()</em></strong><em> to create dates.</em></li><li><em>Format dates with </em><strong><em>toLocaleString(), toDateString()</em></strong><em>, etc.</em></li><li><em>Extract components like day, month, and year using </em><strong><em>getDate(), getMonth()</em></strong><em>, etc.</em></li><li><em>Use </em><strong><em>Date.now()</em></strong><em> for timestamps.</em></li><li><em>Customize date formats with </em><strong><em>toLocaleString() </em></strong><em>options.</em></li><li><em>Manipulate dates using s</em><strong><em>etDate(), setMonth()</em></strong><em>, etc.</em></li><li><em>Create </em><strong><em>fun projects</em></strong><em> like countdowns and age calculators.</em></li></ul><p>Thank you so much for reading till the last. I hope you learned something unique from this part of the JavaScript Series. I have also published blogs on HTML5 in this series you can explore and read those as well.</p><p>I would love to receive/read the feedback, suggestions and comments from awesome tech enthusiasts and explorers.</p><p><strong>If you have any questions feel free to reach out to me at:</strong></p><blockquote><strong><em>Website: </em></strong><a href="https://devabdulrehman.vercel.app/"><em>https://devabdulrehman.vercel.app/</em></a></blockquote><blockquote><strong><em>LinkedIn:</em></strong><em> </em><a href="https://www.linkedin.com/in/abdulrehman0/"><em>https://www.linkedin.com/in/abdulrehman0</em></a></blockquote><blockquote><strong><em>Twitter:</em></strong><em> </em><a href="https://twitter.com/intent/follow?screen_name=devabdulrehman"><em>https://twitter.com/intent/follow?screen_name=devabdulrehman</em></a></blockquote><blockquote><strong><em>YouTube:</em></strong><em> </em><a href="https://www.youtube.com/@DevAbdulRehman?sub_confirmation=1"><em>https://www.youtube.com/@DevAbdulRehman?sub_confirmation=1</em></a></blockquote><blockquote><strong><em>GitHub:</em></strong><em> </em><a href="https://github.com/abdulrehmanghub"><em>https://github.com/abdulrehmanghub</em></a></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=64d34994219e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mastering JavaScript: A Beginner’s Guide (Part 2) | Web Development Series]]></title>
            <link>https://medium.com/@abdulrehman0/mastering-javascript-a-beginners-guide-part-2-web-development-series-1010f1aa0f95?source=rss-5a8c20ce7a5------2</link>
            <guid isPermaLink="false">https://medium.com/p/1010f1aa0f95</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Abdul Rehman]]></dc:creator>
            <pubDate>Mon, 03 Feb 2025 21:43:51 GMT</pubDate>
            <atom:updated>2025-02-03T21:43:51.536Z</atom:updated>
            <content:encoded><![CDATA[<h4><strong>JavaScript Fundamentals: Data Types, Strings, Memory and More</strong></h4><p>Welcome back to Part 2 of our <strong>JavaScript Web Development Series</strong>! If you’re new here, all you need is <strong>curiosity and dedication + part 1 of this series </strong>— no prior coding experience required. Let’s dive deeper into JavaScript with easy explanations and hands-on examples.</p><figure><img alt="Mastering JavaScript" src="https://cdn-images-1.medium.com/max/1024/1*_2rJT3j_Afq2AlrYca3DuA.png" /><figcaption>Mastering JavaScript Series</figcaption></figure><h3>1. Data Types: Primitive vs. Non-Primitive</h3><p>JavaScript categorizes data into 2<strong> types</strong>:</p><blockquote>Primitive (Immutable)</blockquote><p><strong><em>7 Types</em></strong><em>: </em><em>String, </em><em>Number, </em><em>Boolean, </em><em>Null, </em><em>Undefined, </em><em>Symbol, </em><em>BigInt.</em></p><p><em>Examples:</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4QQ0A9C6gZYZTMPmYkW2eA.png" /><figcaption>primitive data types — JS</figcaption></figure><p><em>Key Fact: </em><em>typeof null returns </em><em>&quot;object&quot; (a historical bug).</em></p><blockquote>Non-Primitive (Reference Types)</blockquote><p><strong><em>3 Types</em></strong><em>: </em><em>Array, </em><em>Object, </em><em>Function.</em></p><p>Behind the scenes the Array and Functions are also objects, so technically we can also say that there is only 1 reference type and that is object.</p><p><em>Examples</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BQxdz4O3A3BzgCvVDO6xXA.png" /><figcaption>non primitive(reference) types — JS</figcaption></figure><h3>2. Memory: Stack vs. Heap</h3><blockquote><strong>Stack</strong></blockquote><p>Used for <strong>primitive</strong> types. Creates a <strong>copy</strong> of the value.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AHjSzv-WI2S6abljfYYPWQ.png" /><figcaption>stack memory — JS</figcaption></figure><blockquote><strong>Heap</strong></blockquote><p>Used for <strong>non-primitive</strong> types. Shares the <strong>original reference</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BIiMn953dgve6KkgpRgpig.png" /><figcaption>heap memory— JS</figcaption></figure><h3>3. Strings and Methods</h3><blockquote>String Basics</blockquote><p>Use <strong>backticks</strong> (`) for dynamic values. The button below the Escape button on a keyboard. We can use it as like quotes but it’s more advance and easy to use. Make sure to write the logic/JS part inside the ${} — the dollar symbol and curly brackets.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IvR90eSL56T4GlVn4EwIBw.png" /><figcaption>backticks — JS</figcaption></figure><blockquote>String Methods</blockquote><p>There are many methods of string, which we will discover in upcoming advance topics but few of them are:</p><p><strong><em>slice()</em></strong><em>: Extract parts of a string (</em><em>&quot;Pakistan&quot;.slice(2) → &quot;kistan&quot;).</em></p><p><strong><em>trim()</em></strong><em>: Remove extra spaces (</em><em>&quot; Abdul &quot;.trim() → &quot;Abdul&quot;).</em></p><p><strong><em>replace()</em></strong><em>: Replace text (</em><em>url.replace(&quot;%20&quot;, &quot;_&quot;)).</em></p><p><strong><em>split()</em></strong><em>: Convert to array using a separator (</em><em>&quot;A B C&quot;.split(&quot; &quot;) → [&quot;A&quot;, &quot;B&quot;, &quot;C&quot;]).</em></p><h3>4. Numbers and Math</h3><blockquote>Number Methods</blockquote><p>There are many methods/features of numbers, which we will discover in upcoming advance topics but few of them are:</p><p><strong><em>toFixed(2)</em></strong><em>: Add decimals (</em><em>1000 → &quot;1000.00&quot;).</em></p><p><strong><em>toLocaleString()</em></strong><em>: Format with commas (</em><em>2500000 → &quot;2,500,000&quot;).</em></p><blockquote>Math Object</blockquote><p><strong><em>Math.random()</em></strong><em>: Generate random numbers between 0 and 1.</em></p><p><strong><em>Math.floor()</em></strong><em>: Round down (</em><em>23.95 → 23).</em></p><p><em>Let’s see Random Number in a Range of 10 — 20</em></p><figure><img alt="number — js" src="https://cdn-images-1.medium.com/max/1024/1*zj9bGA0c2LYFv9tXl0r6iQ.png" /><figcaption>number — JS</figcaption></figure><p>This will gives us random number between 10 to 20 everytime we run the program.</p><h3>— — Summarize today’s learning of JS — —</h3><p>I have provided the 10 Key Takeaways for JavaScript Beginners from today’s JS Learnings.</p><ul><li><strong><em>Primitive Types</em></strong><em> copy values; </em><strong><em>Non-Primitive</em></strong><em> share references.</em></li><li><strong><em>Stack</em></strong><em> = Copy,</em><strong><em> Heap</em></strong><em> = Reference.</em></li><li><strong><em>Backticks</em></strong><em> simplify string formatting.</em></li><li><strong><em>slice()</em></strong><em> and </em><strong><em>substring()</em></strong><em> extract parts of strings.</em></li><li><strong><em>trim() </em></strong><em>cleans up extra spaces.</em></li><li><strong><em>replace()</em></strong><em> and </em><strong><em>split()</em></strong><em> modify strings.</em></li><li><strong><em>toFixed()</em></strong><em> adds decimals to numbers.</em></li><li><strong><em>Math.random()</em></strong><em> needs scaling for practical use.</em></li><li><strong><em>Symbol </em></strong><em>creates unique IDs.</em></li><li><em>Avoid </em><strong><em>var</em></strong><em> — use const/let for safety.</em></li></ul><p>Thank you so much for reading till the last. I hope you learned something unique from this part of the JavaScript Series. I have also published blogs on HTML5 in this series you can explore and read those as well.</p><p>I would love to listen/read the feedback, suggestions and comments from awesome tech enthusiasts and explorers.</p><p><strong>If you have any questions feel free to reach out to me at:</strong></p><blockquote><strong>Website: </strong><a href="https://devabdulrehman.vercel.app/">https://devabdulrehman.vercel.app/</a></blockquote><blockquote><strong><em>LinkedIn:</em></strong><em> </em><a href="https://www.linkedin.com/in/abdulrehman0/">https://www.linkedin.com/in/abdulrehman0</a></blockquote><blockquote><strong><em>Twitter:</em></strong><em> </em><a href="https://twitter.com/intent/follow?screen_name=devabdulrehman">https://twitter.com/intent/follow?screen_name=devabdulrehman</a></blockquote><blockquote><strong><em>YouTube:</em></strong><em> </em><a href="https://www.youtube.com/@DevAbdulRehman?sub_confirmation=1">https://www.youtube.com/@DevAbdulRehman?sub_confirmation=1</a></blockquote><blockquote><strong><em>GitHub:</em></strong> <a href="https://github.com/abdulrehmanghub">https://github.com/abdulrehmanghub</a></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1010f1aa0f95" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mastering JavaScript: A Beginner’s Guide (Part 1) | Web Development Series]]></title>
            <link>https://medium.com/@abdulrehman0/mastering-javascript-a-beginners-guide-part-1-web-development-series-b2108d72ad77?source=rss-5a8c20ce7a5------2</link>
            <guid isPermaLink="false">https://medium.com/p/b2108d72ad77</guid>
            <category><![CDATA[web3]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[deepseek]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Abdul Rehman]]></dc:creator>
            <pubDate>Mon, 03 Feb 2025 16:06:21 GMT</pubDate>
            <atom:updated>2025-02-03T16:06:21.527Z</atom:updated>
            <content:encoded><![CDATA[<p>Welcome to Part 1 of our JavaScript series! Let’s break down the essentials with simple explanations and examples. I have provided a easy details and explanation which will help you to conquer the journey of JavaScript. You will easily learn JavaScript by following our Web Development JS Series. The prerequisits are nothing but your motivation and dedication to learning JavaScript. So, let’s explore the basics of JavaScript first.</p><figure><img alt="JavaScript Learning" src="https://cdn-images-1.medium.com/max/1024/1*_2rJT3j_Afq2AlrYca3DuA.png" /><figcaption>JavaScript Learning</figcaption></figure><h4><strong>JavaScript: The Language Powering the Modern Web</strong></h4><p>JavaScript is a dynamic, versatile programming language that has become the backbone of modern web development. Initially created to add interactivity to websites, JavaScript is now used for <em>front-end</em> (client-side), <em>back-end</em> (server-side with Node.js), mobile apps, and even desktop applications.</p><p>Known for its <strong>ease of learning</strong> and <strong>flexibility</strong>, JavaScript powers frameworks like React, Angular, and Vue.js, enabling developers to build fast, responsive websites. With its massive community support, cross-platform compatibility, and constant evolution (ES6+ features), JavaScript remains a must-learn language for beginners and professionals alike. Whether you’re creating animations, handling data, or building full-stack apps, JavaScript is your gateway to the digital world. ✨</p><p>Now, we are going to learn JavaScript step by step.</p><p>First of all you need to have a browser in your Computer/Laptop/PC to open a console. You can also download and install VS Code Software to run your JavaScript code there in terminal/console or in the browser.</p><p>In browser, you need to open the console. Press F12 button or right click on anywhere in the browser and from the options select console. So, the console will open and you can start your coding.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/403/1*sMx6ENlvlDeLFf8om8BiAA.png" /><figcaption>browser options (inspect)</figcaption></figure><h3>1. Console Output</h3><p>The console helps you display messages or debug code.</p><blockquote><strong>console.log()</strong>: Prints text or variables.</blockquote><figure><img alt="JavaScript — console (output)" src="https://cdn-images-1.medium.com/max/1024/1*0jiQyyXWtx17OhnYrRVHjA.png" /><figcaption>console (output)</figcaption></figure><blockquote><strong>console.table()</strong>: Displays data in a table format (useful for multiple variables).</blockquote><figure><img alt="JavaScript — console table (output)" src="https://cdn-images-1.medium.com/max/1024/1*_iGa1-LkOOfvrx47f9P7lA.png" /><figcaption>console table (output)</figcaption></figure><h3>2. Variables</h3><p>Variables store data. Declare them using:</p><blockquote><strong>const</strong>: For values that <strong>never change</strong> (e.g., your birth year).</blockquote><figure><img alt="JavaScript const variables" src="https://cdn-images-1.medium.com/max/1024/1*y_wN4br6YEQ61iWjhYIK2A.png" /><figcaption>const variable</figcaption></figure><blockquote><strong>let</strong>: For values that <strong>can change</strong> (e.g., user input).</blockquote><figure><img alt="JavaScript let variable" src="https://cdn-images-1.medium.com/max/1024/1*XNAakChDbJg1AbQKPV2npg.png" /><figcaption>let variable</figcaption></figure><blockquote><strong>var</strong>: Older method; avoid it due to scope issues (we’ll cover this later).</blockquote><p><strong>Note</strong>: Avoid declaring variables without const, let, or var</p><p>(e.g., name = &quot;Abdul&quot;).</p><p>(e.g., city = &quot;cityName&quot;).</p><h3>3. Data Types</h3><p>JavaScript has 2 major data types</p><blockquote><strong>Primitive(7): (Number, String, Boolean, Null, Undefined, BigInt, Symbol)</strong></blockquote><blockquote><strong>Reference(non-primitive): Objects (all of those with brackets like <em>[abc], (abc), {abc}</em>. Functions, Objects, Arrays etc are all reference type.</strong></blockquote><blockquote><strong>1: Number</strong>: Any numeric value.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bpRpSh4b9nboNke7E4aYTg.png" /><figcaption>data type: Number</figcaption></figure><blockquote><strong>2: String</strong>: Text in quotes (&quot; &quot; or &#39; &#39;).</blockquote><figure><img alt="JavaScript String" src="https://cdn-images-1.medium.com/max/1024/1*LiZ-X89Z47byQneK6m_lYQ.png" /><figcaption>data type: String</figcaption></figure><blockquote><strong>3: Boolean</strong>: true or false.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DB8yjFvb1Xc6EMc0Lo-OUg.png" /><figcaption>Data Type: Boolean</figcaption></figure><blockquote><strong>4: Null</strong>: Represents an <strong>empty</strong> or <strong>unknown</strong> value.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*35S_iBj7GxpcahFkkVd8-g.png" /><figcaption>data type: Null</figcaption></figure><blockquote><strong>5: Undefined</strong>: A variable declared but <strong>not assigned a value</strong>.</blockquote><figure><img alt="JavaScript Undefined" src="https://cdn-images-1.medium.com/max/1024/1*-fZaEV3PTBLMIsghchoLOg.png" /><figcaption>data type: Undefined</figcaption></figure><p>The last two are very rare, and we will rarely use these.</p><blockquote><strong>6: Symbol</strong>: Creates unique identifiers (advanced, used in objects).</blockquote><blockquote><strong>7: BigInt</strong>: For extremely large numbers (e.g., 12345678901234567890n).</blockquote><p>Reference(non-primitive): Objects (all of those with brackets like <em>[abc], (abc), {abc}</em>. Functions, Objects, Arrays etc are all reference type. This is a little advance topic and we’ll cover it later on.</p><h3>4. Type Conversion</h3><p>Convert data types explicitly:</p><blockquote><strong>String to Number</strong>:</blockquote><figure><img alt="JavaScript — string to number conversion" src="https://cdn-images-1.medium.com/max/1024/1*kJ7fCFx3qequ_pdgMNW34w.png" /><figcaption>string to number conversion</figcaption></figure><p>If conversion fails (e.g., Number(&quot;abc&quot;)), it returns NaN (Not a Number).</p><blockquote><strong>Number to String</strong>:</blockquote><figure><img alt="JavaScript — number to string conversion" src="https://cdn-images-1.medium.com/max/1024/1*GUlD3aOHxHi1M62jFK89SA.png" /><figcaption>number to string conversion</figcaption></figure><blockquote><strong>Boolean Conversion</strong>:</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Sc3ynku9M8gbVYsJEF_nVw.png" /><figcaption>boolean conversion</figcaption></figure><p><strong>Note:</strong> Empty strings (&quot;&quot;) become false, non-empty strings become true.</p><h3>5. Operations</h3><blockquote>Arithmetic</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yeo72p4Y0kv2Vpp7S0rYtQ.png" /><figcaption>arithmetic</figcaption></figure><blockquote>String Concatenation</blockquote><p>Combine strings with +</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_-Ks2DlGTs5UD4a_Lov6pQ.png" /><figcaption>concatenation</figcaption></figure><blockquote>Tricky Conversions</blockquote><p>JavaScript prioritizes strings when mixing types</p><figure><img alt="JavaScript — tricky conversions 1" src="https://cdn-images-1.medium.com/max/1024/1*zeHymBHQf4_f8C25bqkMMg.png" /><figcaption>tricky conversions 1</figcaption></figure><blockquote><strong>Avoid Confusing Code</strong></blockquote><p>Make the code, simple and easy to read not confusable with extra and hard logics</p><figure><img alt="JavaScript — avoid conversion" src="https://cdn-images-1.medium.com/max/1024/1*xU0ipvGVhTyzwf9-7-vAiQ.png" /><figcaption>avoid conversion</figcaption></figure><h3>6. Comparisons</h3><p>Check the conditions with operators</p><blockquote><strong>Basic Checks</strong></blockquote><figure><img alt="JavaScript — basic checks" src="https://cdn-images-1.medium.com/max/1024/1*GPEPBBKLtvNoFWDPihjAoQ.png" /><figcaption>basic checks</figcaption></figure><blockquote><strong>Strict Equality (</strong><strong>===)</strong>:</blockquote><p>Checks <strong>value and type</strong></p><figure><img alt="JavaScript — Strict Equality (===)" src="https://cdn-images-1.medium.com/max/1024/1*Jm7xQqRYFxnpYm8YVbs24Q.png" /><figcaption>strict equality</figcaption></figure><p>Avoid these types of code:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a5I8b0WBEuVP_WUXHfWUGA.png" /><figcaption>avoid to use</figcaption></figure><h3><strong>— — Summarize today’s learning of JS — —</strong></h3><p>I have provided the 10 Key Takeaways for JavaScript Beginners from today’s JS Learnings.</p><p><strong>Use const and let for Variables</strong></p><ul><li><em>const: Declare variables that never change (e.g., const PI = 3.14).</em></li><li><em>let: Use for values that might change (e.g., let counter = 0).</em></li><li><em>Avoid var: It has scope-related quirks and is outdated in modern JavaScript.</em></li></ul><p><strong>Prefer Strict Equality (===)</strong></p><ul><li><em>=== checks value and type (e.g., “5” === 5 → false).</em></li><li><em>Avoid == (loose equality), which can cause hidden bugs due to type coercion (e.g., “5” == 5 → true).</em></li></ul><p><strong>Understand Data Types</strong></p><ul><li>JavaScript has 7 primitive types: number, string, boolean, null, undefined, symbol, and bigint.</li><li>Objects are non-primitive (e.g., arrays, functions).</li><li>typeof null returns “object” (a historical quirk).</li></ul><p><strong>Avoid Implicit Type Conversions</strong></p><ul><li>Mixing types can lead to unexpected results (e.g., “1” + 2 = “12”).</li><li>Use explicit conversions like Number(), String(), or Boolean().</li></ul><p><strong>Declare Variables Properly</strong></p><ul><li>Always use const/let to declare variables.</li><li>Never use undeclared variables (e.g., x = 10), as they become global and pollute the scope.</li></ul><p><strong>Use “use strict”;</strong></p><ul><li>Add “use strict”; at the top of files to enforce stricter error-checking and avoid silent mistakes.</li></ul><p><strong>Distinguish null and undefined</strong></p><ul><li>null: Represents an intentional empty value.</li><li>undefined: Means a variable is declared but not assigned a value.</li></ul><p><strong>Avoid Tricky Code Patterns</strong></p><ul><li>Don’t write complex one-liners like 3 + 4 * 5 % 3. Break them into readable steps.</li><li>Avoid +true or +”” (implicit conversions), as they reduce clarity.</li></ul><p><strong>Prioritize Code Readability</strong></p><ul><li>Use meaningful variable names (e.g., userAge instead of x).</li><li>Avoid writing multiple statements in one line (e.g., console.log(a); console.log(b);).</li></ul><p><strong>Learn Increment/Decrement Operators</strong></p><ul><li>++ and — modify values in place (e.g., let count = 0; count++ → 1).</li><li>Use them cautiously to avoid unintended side effects in loops.</li></ul><p>Thank you so much for reading till the last. I hope you learn something unique and new. I have also published blogs on HTML in this series you can explore and read those as well.</p><p>I love to listen/read the feedback, suggestions and comments from awesome tech enthusiasts and explorers.</p><p><strong>If you have any questions feel free to reach out to me at:</strong></p><blockquote><strong><em>LinkedIn:</em></strong><em> </em><a href="https://www.linkedin.com/in/abdulrehman0/">https://www.linkedin.com/in/abdulrehman0</a></blockquote><blockquote><strong><em>Twitter:</em></strong><em> </em><a href="https://twitter.com/intent/follow?screen_name=devabdulrehman">https://twitter.com/intent/follow?screen_name=devabdulrehman</a></blockquote><blockquote><strong><em>YouTube:</em></strong><em> </em><a href="https://www.youtube.com/@DevAbdulRehman?sub_confirmation=1">https://www.youtube.com/@DevAbdulRehman?sub_confirmation=1</a></blockquote><blockquote><strong><em>GitHub:</em></strong><em> </em><a href="https://github.com/abdulrehmanghub">https://github.com/abdulrehmanghub</a></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b2108d72ad77" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Free: Upgrade your Experience with GitHub Foundations Certification Exam ]]></title>
            <link>https://medium.com/@abdulrehman0/free-upgrade-your-experience-with-github-foundations-certification-exam-2171b1f3db50?source=rss-5a8c20ce7a5------2</link>
            <guid isPermaLink="false">https://medium.com/p/2171b1f3db50</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[students]]></category>
            <category><![CDATA[git]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[github]]></category>
            <dc:creator><![CDATA[Abdul Rehman]]></dc:creator>
            <pubDate>Fri, 29 Nov 2024 06:43:17 GMT</pubDate>
            <atom:updated>2024-11-29T06:43:17.383Z</atom:updated>
            <content:encoded><![CDATA[<p>Hi tech explorer, today we’ll be covering a topic that how we can schedule the <strong>GitHub Foundations Certification Exam</strong> with no cost. Yes, you’ve heard it right. Before diving into the complete details of it, first of all, I’m thrilled to share that I have successfully completed and passed the GitHub Foundations Exam and earned a certificate as well as badge by <strong>Credly</strong>.</p><p>Passing the GitHub Foundations certification exam validates subject matter expertise by measuring entry-level skills with GitHub basics like repositories, commits, branching, markdowns, and project management.</p><p>The GitHub Foundations certification exam is free of cost for you if you are a student or have the access of <strong>GitHub Student Developers Pack</strong>. 🔥</p><figure><img alt="GitHub Foundation Certification" src="https://cdn-images-1.medium.com/max/1024/1*n1_M4ofBi7NfHU0grp0i5A.png" /><figcaption>GitHub Foundation Certification</figcaption></figure><h4>Resources in this Experience</h4><p>All verified students now have the opportunity to validate their GitHub foundational skills and earn a badge by taking the certification exam for free. A 1-time voucher will be attached to your exam account for the Foundations exam. The resources on the <a href="https://education.github.com/experiences/foundations_certificate/?wt.mc_id=studentamb_267048"><em>official page of GitHub Foundations Certification exam</em></a> include useful information to assist in getting you ready to take the GitHub Foundations Certification exam.</p><ul><li>An intro to GitHub Certifications video so you can understand how we view certifications and why you should get certified</li><li>Prep courses, study guides and step-by-step modules recommended by our DevRel team</li><li>The certification Candidate Handbook with all FAQs about the certification exam and what to expect</li></ul><p><strong>Note:</strong> In case you do not perform well in the first attempt then you can try again after 3 weeks of time, you can attempt as many time as you want.</p><p>So, what are you waiting for ?</p><h4>Get your exam schedule now</h4><p><a href="https://education.github.com/experiences/foundations_certificate/?wt.mc_id=studentamb_267048">GitHub Education GitHub Foundations Certification</a></p><h4>Access GitHub Student Developers Pack Here</h4><p><a href="https://education.github.com/pack?wt.mc_id=studentamb_267048">GitHub Student Developer Pack</a></p><figure><img alt="GitHub Student Developer Pack" src="https://cdn-images-1.medium.com/max/892/1*DckkYeVzcvh60y2gjOq4aA.png" /><figcaption>GitHub Student Developer Pack</figcaption></figure><p>There is a point, while scheduling your exam, you might see the price like $49.99 or something don’t worry just move next, and continue until the last schedule page where the exam voucher will automatically apply and cost reduced to $0.00 which means Free.</p><p>After successfully scheduling your exam, you will receive email with all the instructions you have to follow before taking exam:</p><ul><li><em>You must prepare for the exam</em></li><li><em>Laptop should charge fully or connected to charger</em></li><li><em>Proper/Fast internet connection</em></li></ul><p>You have then <strong>60 days to take your exam after scheduling</strong>, whenever you want to take your exam then go to scheduling page(PSI Exams) by email or URL. Click on the <strong><em>“Install PSI Software”</em></strong>, this will install a PSI Software on your computer/PC/Laptop.</p><p>Click on <strong><em>“Launch the exam”</em></strong>. After that in 2–3 minutes the PSI Software will open and your exam will start.</p><h4>Exam Criteria</h4><ul><li><em>Total MCQs: 75</em></li><li><em>Passing Marks: 60% Marks (35–37 correct MCQs)</em></li><li><em>Time: 2 Hours(120 Minutes)</em></li><li><em>Topics: Git, GitHub, GitHub Enterprise, GitHub Copilot, Open Source Tools.</em></li></ul><h4>Exam Preparation</h4><p><a href="https://medium.com/u/940e606ec51a">Microsoft + Open Source</a> Learn: GitHub Foundations Learning Path</p><p><a href="https://learn.microsoft.com/en-us/training/paths/github-foundations/?wt.mc_id=studentamb_267048">GitHub Foundations - Training</a></p><figure><img alt="GitHub Foundation MS Learn" src="https://cdn-images-1.medium.com/max/896/1*jfoMPmpXSNBeGB8ZQjdlpw.png" /><figcaption>GitHub Foundation MS Learn</figcaption></figure><p>A 9+ hours long preparation video by <strong>Andrew Brown</strong> on <a href="https://medium.com/u/8b318225c16a">freeCodeCamp</a> to enhance your skills before taking this exam.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FJdc0i7RcBv8%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DJdc0i7RcBv8&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FJdc0i7RcBv8%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/317de26d99ba55c1165e785f91fbd352/href">https://medium.com/media/317de26d99ba55c1165e785f91fbd352/href</a></iframe><h4>Awards</h4><ul><li>Special <strong>Certificate</strong> by <a href="https://medium.com/u/8df3bf3c40ae">GitHub</a> on Credly Platform</li><li>Special <strong>Badge</strong> by GitHub on Credly Platform</li></ul><p>Thank you so much for tech enthusiast for reading, I hope you find it insightful. if you have found this helpful make sure to like it and share with other tech enthusiasts.</p><p><strong>Checkout my Credly profile and awards here:</strong></p><p><a href="https://www.credly.com/users/abdulrehman0">Credly</a></p><figure><img alt="GitHub Foundation Badge" src="https://cdn-images-1.medium.com/max/1024/1*Er6RYdxQeaG9aKuFmvgZQA.png" /><figcaption>GitHub Foundation Badge</figcaption></figure><p><strong>If you have any questions feel free to reach out to me at:</strong></p><blockquote><strong><em>LinkTree:</em></strong><em> </em><a href="https://linktr.ee/devabdulrehman"><em>https://linktr.ee/devabdulrehman</em></a></blockquote><blockquote><strong><em>LinkedIn:</em></strong><em> </em><a href="https://www.linkedin.com/in/abdulrehman0/"><em>https://www.linkedin.com/in/abdulrehman0</em></a></blockquote><blockquote><strong><em>Twitter:</em></strong><em> </em><a href="https://twitter.com/intent/follow?screen_name=devabdulrehman"><em>https://twitter.com/intent/follow?screen_name=devabdulrehman</em></a></blockquote><blockquote><strong><em>YouTube:</em></strong><em> </em><a href="https://www.youtube.com/channel/UC0U-CjmrinC6I3Gb1dOk0WA?sub_confirmation=1"><em>https://www.youtube.com/channel/UC0U-CjmrinC6I3Gb1dOk0WA?sub_confirmation=1</em></a></blockquote><blockquote><strong><em>GitHub:</em></strong><em> </em><a href="https://github.com/abdulrehmanghub"><em>https://github.com/abdulrehmanghub</em></a></blockquote><p>#github #githubfoundationsexam #githubexam #githubdeveloperpack #students #exam #credly badge #git #githubcertifications #certificate #developers #tech #community</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2171b1f3db50" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>