<?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 Khaled Mahmud on Medium]]></title>
        <description><![CDATA[Stories by Khaled Mahmud on Medium]]></description>
        <link>https://medium.com/@kmahmud101?source=rss-346ed003c4b2------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*YkEfjnL1w5RYjFy4ZRxshw.jpeg</url>
            <title>Stories by Khaled Mahmud on Medium</title>
            <link>https://medium.com/@kmahmud101?source=rss-346ed003c4b2------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 00:00:51 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kmahmud101/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[What is javascript? Why do we learn javascript?]]></title>
            <link>https://medium.com/@kmahmud101/what-is-javascript-why-do-we-learn-javascript-e410eb48b30d?source=rss-346ed003c4b2------2</link>
            <guid isPermaLink="false">https://medium.com/p/e410eb48b30d</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[codeing]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[web-design]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Khaled Mahmud]]></dc:creator>
            <pubDate>Wed, 17 May 2023 13:20:40 GMT</pubDate>
            <atom:updated>2023-05-17T13:20:40.103Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*9iH8lk8qIhF24SlI5K1xtA.png" /></figure><p>Javascript is a programming language. Programming language is a language which can communicate with computer machine. When we provide any instruction to computer through a programming language it can process and return output. Javascript released in 1991 only for browsers.</p><p>Javascript can run browsers and machines( computer). When we run javascript our browser and machine can’t understand javascript directly. Javascript code received by another computer program, in a browser which fancy name is JS engine. Different browser have different JS engines like google chrome use v8 engine, Mozilla Firefox use Spider Monkey. All JS engine just a computer program with different name.</p><p>When we run javascript in computer that time javascript code is also received by a computer program which is node js. In 2009 a genius programmer ryan dahl released node js. He made node js with v8 engine source code and some of his own c++ code (v8 engine is made by c++ which is another programming language). Node js is called JS runtime which means a program that is capable of running javascript code. We need to install node js in our computer to execute javascript code.</p><p><strong>Why we learn:</strong></p><ol><li>Easy to Learn: javascript syntax is easy to learn. If you are new to programming, then JavaScript is a great choice to start. It is a programmer friendly language. You can easily start javascript code in a browser or by downloading and installing node js.</li><li>Popular language: javascript is the most popular programming language by some initiative. Javascript can be used in website frontend and backend both, that means we don’t learn another language for backend. Javascript is also used widely in mobile app industry.</li><li>High Demand in job market: Lots of jobs available for javascript developers with a decent amount of salary. Javascript developer demand is increasing every month.</li></ol><p><strong>Note:</strong> Here I skip some javascript topics like Asynchronous, Dynamic, Interpreted, high level because this type of topic confuse beginners. After a specific learning period he/she can understand these topics.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e410eb48b30d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[JavaScript Scope - All you need to know]]></title>
            <link>https://medium.com/@kmahmud101/javascript-scope-all-you-need-to-know-a618e73cf904?source=rss-346ed003c4b2------2</link>
            <guid isPermaLink="false">https://medium.com/p/a618e73cf904</guid>
            <category><![CDATA[javascript-concepts]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[javascript-tips]]></category>
            <category><![CDATA[javascript-scope]]></category>
            <category><![CDATA[js-scope]]></category>
            <dc:creator><![CDATA[Khaled Mahmud]]></dc:creator>
            <pubDate>Fri, 21 Jan 2022 09:28:57 GMT</pubDate>
            <atom:updated>2022-02-18T14:09:12.358Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*hC2Zx8QLbtVpEVov-FuRzQ.png" /></figure><p><strong>Scope</strong><em> </em>is control accessibility of variable (In JavaScript, objects and functions are also variables) that mean’s access variable from different part of program.</p><p>There are 3 type of scope in javaScript</p><ol><li>Global scope</li><li>Function scope</li><li>Block scope</li></ol><h3>Global Scope</h3><p>variable declared whole file area in JS is global scope(outside any function)</p><p>Global variable can access from anywhere in js file</p><p>when global variable declared it get into window object but explicitly not need mention window when console.log</p><p>var a = 10; //global scope</p><p>console.log(window.a)</p><p>console.log(a) // explicitly</p><p>Global variable can be declared with var, let, const</p><p>if Any variable not declared just assigned value it become automatically global even it has in function or block.</p><p>a = 10; //it become global variable</p><p>if a undeclared variable in function(child scope) and there is a another variable in parent scope(outside of function) with same name child variable modify parent variable value. From child scope we can not only access parent scope variable aslo can modify.</p><p>In “Strict Mode”, undeclared variables are not automatically global.</p><h3>Function Scope</h3><p>Each function create a function scope</p><p>Can be access global scope variable from function scope but can’t access function scope variable from global(outside of function).</p><p>Function variable can be declared with var, let, const</p><p>function myFunc(){</p><p>var b= 20; //function scope</p><p>}</p><h3>Block Scope</h3><p>Before ES6 (2015), JavaScript had only global scope and function scope.</p><p>ES6 introduced two important new JavaScript keywords <strong>let</strong> and <strong>const</strong></p><p>These two keywords provide block scope in JavaScript</p><p>Variables declared inside a { } block can not be accessed from outside the block</p><p>{ <br> let c = 2;<br> }<br> // c can not be access outside of block</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a618e73cf904" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>