<?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"><channel><title><![CDATA[GitHub for Beginners]]></title><description><![CDATA[GitHub for Beginners]]></description><link>https://githubforbegginer.hashnode.dev</link><generator>RSS for Node</generator><lastBuildDate>Tue, 06 Oct 2026 06:52:21 GMT</lastBuildDate><atom:link href="https://githubforbegginer.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[Array Methods You Must Know (JavaScript)]]></title><description><![CDATA[When you start JavaScript, arrays look very simple.But after some time you realize most real work happens inside arrays — looping, transforming data, filtering values, calculating totals.
And instead ]]></description><link>https://githubforbegginer.hashnode.dev/array-methods-you-must-know-javascript</link><guid isPermaLink="true">https://githubforbegginer.hashnode.dev/array-methods-you-must-know-javascript</guid><category><![CDATA[@hiteshchoudharylco]]></category><category><![CDATA[#piyushgarag]]></category><category><![CDATA[ChaiCode]]></category><category><![CDATA[Chaiaurcode]]></category><category><![CDATA[Cohort2026]]></category><dc:creator><![CDATA[Dinesh Swami]]></dc:creator><pubDate>Wed, 25 Feb 2026 13:20:08 GMT</pubDate><enclosure url="https://cdn.hashnode.com/uploads/covers/696b45aea5ff9aa8822b6c68/5f78f2d0-1519-4727-83ef-d4e73281ac24.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>When you start JavaScript, arrays look very simple.<br />But after some time you realize most real work happens <strong>inside arrays</strong> — looping, transforming data, filtering values, calculating totals.</p>
<p>And instead of writing long loops every time, JavaScript gives built-in array methods which make life much easier.</p>
<p>Let’s go through the important ones every beginner should know.</p>
<hr />
<h2>push() and pop() → add / remove from end</h2>
<p>Think of push and pop like a stack.</p>
<h3>push()</h3>
<p>Adds item at the end.</p>
<p>Example:</p>
<p>Before → <code>[10, 20, 30]</code><br />After push(40) → <code>[10, 20, 30, 40]</code></p>
<p>Useful when you want to keep adding new data.</p>
<hr />
<h3>pop()</h3>
<p>Removes last item.</p>
<p>Before → <code>[10, 20, 30]</code><br />After pop() → <code>[10, 20]</code></p>
<p>Pop also returns the removed value.</p>
<hr />
<h2>shift() and unshift() → start of array</h2>
<p>These are similar, but work at the beginning.</p>
<h3>unshift()</h3>
<p>Adds item at start.</p>
<p>Before → <code>[20, 30]</code><br />After unshift(10) → <code>[10, 20, 30]</code></p>
<hr />
<h3>shift()</h3>
<p>Removes first item.</p>
<p>Before → <code>[10, 20, 30]</code><br />After shift() → <code>[20, 30]</code></p>
<hr />
<h2>forEach() → simple iteration</h2>
<p>forEach is used when you just want to run something for each item.</p>
<p>Example idea:<br />Print each number in array.</p>
<p>It does not return a new array.<br />It is mainly for side effects like logging or updating UI.</p>
<p>So if you need transformation, forEach is not the best choice.</p>
<hr />
<h2>map() → transform each element</h2>
<p>map creates a <strong>new array</strong> by changing each item.</p>
<p>Example:<br />Numbers → <code>[2, 4, 6]</code><br />Double them using map → <code>[4, 8, 12]</code></p>
<h3>Why not use a for loop?</h3>
<p>You can use a loop, but map is cleaner and shorter.<br />It also avoids manually pushing values into a new array.</p>
<p>Think of map as:<br />“Take each value → change it → return new array”</p>
<hr />
<h2>filter() → select specific values</h2>
<p>filter is used when you only want some items.</p>
<p>Example:<br />Numbers → <code>[5, 12, 8, 20]</code><br />Filter numbers &gt; 10 → <code>[12, 20]</code></p>
<p>filter does not change original array.<br />It creates a new array with matching values.</p>
<p>So map = change values<br />filter = select values</p>
<hr />
<h2>reduce() → combine values into one result</h2>
<p>reduce feels confusing at first, but idea is simple.</p>
<p>reduce takes many values and turns them into <strong>one final value</strong>.</p>
<p>Example:<br />Find sum of <code>[10, 20, 30]</code></p>
<p>Result → <code>60</code></p>
<p>reduce keeps an accumulator which stores the running result.</p>
<p>You don’t need to master reduce now, just remember:<br />reduce = accumulate / combine</p>
<hr />
<h2>Small comparison (loop vs map/filter)</h2>
<p>Traditional loop:</p>
<ul>
<li><p>more lines</p>
</li>
<li><p>manual array handling</p>
</li>
<li><p>easy to make mistakes</p>
</li>
</ul>
<p>map / filter:</p>
<ul>
<li><p>shorter</p>
</li>
<li><p>readable</p>
</li>
<li><p>intention is clear</p>
</li>
</ul>
<p>That’s why modern JS prefers array methods.</p>
]]></content:encoded></item><item><title><![CDATA[How a Browser Works: A Beginner-Friendly Guide]]></title><description><![CDATA[We use browsers every day, but we rarely think what happens inside.You type a URL, press Enter, and a website appears. Let’s see this in a simple way.

What is a Browser?
A browser is a software that:

talks to servers

downloads website files

under...]]></description><link>https://githubforbegginer.hashnode.dev/how-a-browser-works-a-beginner-friendly-guide</link><guid isPermaLink="true">https://githubforbegginer.hashnode.dev/how-a-browser-works-a-beginner-friendly-guide</guid><category><![CDATA[Cohort2026]]></category><category><![CDATA[Chaiaurcode]]></category><category><![CDATA[ChaiCode]]></category><category><![CDATA[@hiteshchoudharylco]]></category><category><![CDATA[#HiteshChaudhary ]]></category><category><![CDATA[#piyushgarag]]></category><dc:creator><![CDATA[Dinesh Swami]]></dc:creator><pubDate>Sat, 31 Jan 2026 10:14:48 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/upload/v1769854414357/c24a8b01-bd28-425b-bb1f-4686bcceb2d2.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>We use browsers every day, but we rarely think what happens inside.<br />You type a URL, press Enter, and a website appears. Let’s see this in a simple way.</p>
<hr />
<h2 id="heading-what-is-a-browser">What is a Browser?</h2>
<p>A browser is a software that:</p>
<ul>
<li><p>talks to servers</p>
</li>
<li><p>downloads website files</p>
</li>
<li><p>understands HTML, CSS, JS</p>
</li>
<li><p>shows everything on your screen</p>
</li>
</ul>
<p>So it does much more than just “open websites”.</p>
<hr />
<h2 id="heading-what-happens-after-pressing-enter">What happens after pressing Enter?</h2>
<p>Simple flow:</p>
<ol>
<li><p>Browser sends request to server</p>
</li>
<li><p>Server sends HTML, CSS, JS</p>
</li>
<li><p>Browser reads them</p>
</li>
<li><p>Browser builds the page</p>
</li>
<li><p>Website appears on screen</p>
</li>
</ol>
<hr />
<h2 id="heading-main-parts-of-a-browser">Main parts of a Browser</h2>
<p>At a high level, browser has:</p>
<ul>
<li><p>User Interface (address bar, tabs)</p>
</li>
<li><p>Networking (downloads files)</p>
</li>
<li><p>Rendering Engine (draws page)</p>
</li>
<li><p>JavaScript Engine</p>
</li>
</ul>
<p>All these work together.</p>
<hr />
<h2 id="heading-html-to-dom">HTML to DOM</h2>
<p>Browser reads HTML and <strong>parses</strong> it.<br />Parsing means breaking code into pieces.</p>
<p>From HTML, browser creates <strong>DOM</strong>.<br />DOM is like a tree of elements.</p>
<hr />
<h2 id="heading-css-to-cssom">CSS to CSSOM</h2>
<p>Browser reads CSS and creates <strong>CSSOM</strong>.<br />CSSOM contains style rules like color, size, position.</p>
<hr />
<h2 id="heading-dom-cssom">DOM + CSSOM</h2>
<p>DOM and CSSOM combine to make <strong>Render Tree</strong>.<br />Render Tree contains only visible things.</p>
<hr />
<h2 id="heading-layout-and-paint">Layout and Paint</h2>
<ul>
<li><p>Layout decides size and position</p>
</li>
<li><p>Paint adds colors and text</p>
</li>
<li><p>Screen shows final result</p>
</li>
</ul>
<hr />
<h2 id="heading-conclusion">Conclusion</h2>
<p>You don’t need to remember everything.<br />Just remember the flow:</p>
<p>HTML → DOM<br />CSS → CSSOM<br />DOM + CSSOM → Render Tree<br />Render Tree → Layout → Paint → Screen</p>
]]></content:encoded></item><item><title><![CDATA[Git for Beginners: Basics and Essential Commands]]></title><description><![CDATA[What is Git?
\= Git is a Version Control System (VCS). It helps you track your code changes and save versions of your project.Git mostly works on your local system and you use it from terminal.

Why Git is Used?
\= Git is used to:

track code changes...]]></description><link>https://githubforbegginer.hashnode.dev/git-for-beginners-basics-and-essential-commands</link><guid isPermaLink="true">https://githubforbegginer.hashnode.dev/git-for-beginners-basics-and-essential-commands</guid><category><![CDATA[Cohort2026]]></category><category><![CDATA[@hiteshchoudharylco]]></category><category><![CDATA[chai-code ]]></category><category><![CDATA[GitHub]]></category><category><![CDATA[github-actions]]></category><category><![CDATA[Programming Blogs]]></category><dc:creator><![CDATA[Dinesh Swami]]></dc:creator><pubDate>Sat, 17 Jan 2026 08:41:28 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/upload/v1768639066125/0f6c8db6-7fd8-492d-8701-1be717c1d3c2.avif" length="0" type="image/jpeg"/><content:encoded><![CDATA[<h2 id="heading-what-is-git">What is Git?</h2>
<p>\= Git is a <strong>Version Control System (VCS)</strong>. It helps you track your code changes and save versions of your project.<br />Git mostly works on your local system and you use it from terminal.</p>
<hr />
<h2 id="heading-why-git-is-used">Why Git is Used?</h2>
<p>\= Git is used to:</p>
<ul>
<li><p>track code changes (who changed what and when)</p>
</li>
<li><p>work in a team without messing code</p>
</li>
<li><p>save project history safely</p>
</li>
<li><p>go back to older version if something breaks</p>
</li>
</ul>
<hr />
<h2 id="heading-git-basics-and-core-terminologies">Git Basics and Core Terminologies?</h2>
<p>\= Git Basics</p>
<ul>
<li><p><strong>Git:</strong> tool to manage version history</p>
</li>
<li><p><strong>Repository (Repo):</strong> a project folder tracked by Git</p>
</li>
<li><p><strong>Local Repository:</strong> repo on your laptop/pc</p>
</li>
<li><p><strong>Remote Repository:</strong> repo online (GitHub, GitLab)</p>
</li>
</ul>
<p>Core Terms:</p>
<ul>
<li><p><strong>Commit:</strong> saved snapshot of changes</p>
</li>
<li><p><strong>Branch:</strong> separate line of work</p>
</li>
<li><p><strong>Main/Master:</strong> main branch of project</p>
</li>
<li><p><strong>Clone:</strong> copy remote repo to local</p>
</li>
<li><p><strong>Pull:</strong> take latest code from remote to local</p>
</li>
<li><p><strong>Push:</strong> send local commits to remote</p>
</li>
<li><p><strong>Merge:</strong> combine two branches</p>
</li>
<li><p><strong>Checkout/Switch:</strong> move between branches</p>
</li>
<li><p><strong>Staging Area:</strong> area before commit (git add)</p>
</li>
<li><p><strong>HEAD:</strong> points to your current commit</p>
</li>
<li><p><strong>Conflict:</strong> when Git can’t auto merge changes</p>
</li>
</ul>
<hr />
<h2 id="heading-common-git-commands">Common Git Commands?</h2>
<p>\= Repository Setup</p>
<ul>
<li><p><code>git init</code> → start git in a folder</p>
</li>
<li><p><code>git clone &lt;url&gt;</code> → copy a remote repo</p>
</li>
</ul>
<p>\= Daily Workflow</p>
<ul>
<li><p><code>git status</code> → check file status</p>
</li>
<li><p><code>git add &lt;file&gt;</code> / <code>git add .</code> → stage changes</p>
</li>
<li><p><code>git commit -m "message"</code> → save changes</p>
</li>
<li><p><code>git log</code> → see commit history</p>
</li>
</ul>
<p>\= Remote (GitHub) Commands</p>
<ul>
<li><p><code>git remote -v</code> → view remote URLs</p>
</li>
<li><p><code>git push</code> → upload commits to GitHub</p>
</li>
<li><p><code>git pull</code> → download and merge updates</p>
</li>
</ul>
<p>\= Branching</p>
<ul>
<li><p><code>git branch</code> → list branches</p>
</li>
<li><p><code>git branch &lt;name&gt;</code> → create branch</p>
</li>
<li><p><code>git checkout &lt;branch&gt;</code> / <code>git switch &lt;branch&gt;</code> → change branch</p>
</li>
<li><p><code>git merge &lt;branch&gt;</code> → merge branch into current branch</p>
</li>
</ul>
<hr />
<h2 id="heading-basic-developer-workflow-simple">Basic Developer Workflow (simple)</h2>
<ol>
<li><p>Create project folder</p>
</li>
<li><p><code>git init</code></p>
</li>
<li><p>make changes</p>
</li>
<li><p><code>git add .</code></p>
</li>
<li><p><code>git commit -m "first commit"</code></p>
</li>
<li><p>connect remote (GitHub)</p>
</li>
<li><p><code>git push</code></p>
</li>
</ol>
]]></content:encoded></item></channel></rss>