<?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 suryakavutarapu on Medium]]></title>
        <description><![CDATA[Stories by suryakavutarapu on Medium]]></description>
        <link>https://medium.com/@suryakavutarapu?source=rss-290309ea357d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*g4I04neRQVLfq2EeLY56ow.jpeg</url>
            <title>Stories by suryakavutarapu on Medium</title>
            <link>https://medium.com/@suryakavutarapu?source=rss-290309ea357d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 08:16:39 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@suryakavutarapu/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[Javascript: Basics 101 — Variables & execution context.]]></title>
            <link>https://suryakavutarapu.medium.com/javascript-basics-101-variables-execution-context-89cbf1bd742?source=rss-290309ea357d------2</link>
            <guid isPermaLink="false">https://medium.com/p/89cbf1bd742</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[variables-in-javascript]]></category>
            <category><![CDATA[javascript-development]]></category>
            <category><![CDATA[javascript-hoisting]]></category>
            <dc:creator><![CDATA[suryakavutarapu]]></dc:creator>
            <pubDate>Fri, 17 Jun 2022 01:31:54 GMT</pubDate>
            <atom:updated>2022-06-17T01:31:54.739Z</atom:updated>
            <content:encoded><![CDATA[<h3>Javascript: Basics 101 — Variables &amp; execution context.</h3><p>As a continuity to the earlier post, a detailed explanation will be provided as part of this post. As if you haven’t read the post please check it out which is embedded below.</p><p><a href="https://medium.com/@suryakavutarapu/javascript-basics-101-5958f63e5fc8">Javascript: Basics 101 — Introduction &amp; Sample Code.</a></p><p>As part of an earlier post, I have provided a piece of code that contains various javascript reserved keywords.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d4IUDWsEFaEOvCN8g1eQMA.png" /><figcaption>Javascript Basics 101: Sample Clock Image.</figcaption></figure><h3>What are Javascript Keywords?</h3><p>Keywords are tokens that have special meaning in JavaScript these are part of the syntax in the programming language. Keywords cannot be used to name identifiers. In the above script, they were three javascript reserved keywords</p><blockquote>Let’s discuss the basic keyword that everyone uses every day called “var”</blockquote><p><strong>var</strong> is the keyword that tells JavaScript you’re declaring a variable. So what is a variable in javascript or any programing language?</p><p>Variables are containers for storing data (storing data values). There are 4 ways to declare a variable in javascript. A variable is <strong>a value that can change, depending on conditions or on information passed to the program</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MGu9XqpS2knRA0OX2r_e2w.png" /></figure><p>Explaining Javascript syntax and statement declaration</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dW_rWvqTxObJPrzmVIl3CA.png" /></figure><p>Now let’s understand javascript execution context and hoisting in runtime.</p><p>Consider we have a variable and I tried to console.log the variables before the declaration of the variable. This is valid in javascript where javascript is unlike other programming languages we can reference the variable before the declaration.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8BpuSmT3IHZ2uYZZyz6OMg.png" /></figure><p>Now let’s discuss a new term “Creation &amp; Hoisting” in the execution context.</p><p><strong>Step 1:</strong> Javascript reads the code line by line where while reading each line in the creation phase. If checks lines with keyword var let or a global variable declaration. If found it will create a variable in the scope of execution context and will assign “undefined” as the default value.</p><p><strong>Step 2:</strong> Javascript then checks for the assignment operator in the code and finds if the identifier has a reference in its variable scope. If it finds the variable reference then it assigns the value to that identifier.</p><p>If we refer to the above code snippet Step 1 happened in line no 4 and step 2 is done in line number 6.</p><p>Let’s discuss more “Creation &amp; Hoisting” in the next article. If you are curious to know how javascript const creation works! Please read the article attached or wait for my next article 😜.</p><p><a href="https://javascript.plainenglish.io/how-hoisting-works-with-let-and-const-in-javascript-725616df7085">https://javascript.plainenglish.io/how-hoisting-works-with-let-and-const-in-javascript-725616df7085</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=89cbf1bd742" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Javascript: Basics 101 — Introduction & Sample Code.]]></title>
            <link>https://suryakavutarapu.medium.com/javascript-basics-101-5958f63e5fc8?source=rss-290309ea357d------2</link>
            <guid isPermaLink="false">https://medium.com/p/5958f63e5fc8</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[web-design]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[javascript-tips]]></category>
            <category><![CDATA[javascript-development]]></category>
            <dc:creator><![CDATA[suryakavutarapu]]></dc:creator>
            <pubDate>Mon, 06 Jun 2022 01:20:54 GMT</pubDate>
            <atom:updated>2022-06-06T05:38:28.643Z</atom:updated>
            <content:encoded><![CDATA[<p>By the time I started learning web design I was twenty-one years of age I have very minimal knowledge about javascript and how it really works. I thought javascript will be only used to manipulate DOM. I have no idea where and how javascript is used/useful. I don’t even know that javascript is a programing language. The only thing that I know with javascript is…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/822/1*6jrlAwauX5v1YB_MBZUVyg.png" /></figure><p>Later I learned a lot about javascript and now javascript is everywhere. It’s been widely used in Web development, Artificial Intelligence, Mobile Application Development, Game Development, Webservers, etc….</p><p>Every single application, website, or game uses javascript. Recently SpaceX just launched and used Chromium + JavaScript to build its UI interface for astronauts.</p><p>Ref: <a href="https://www.infoq.com/news/2020/06/javascript-spacex-dragon/">https://www.infoq.com/news/2020/06/javascript-spacex-dragon/</a></p><h3>So now What is Javascript?</h3><p>As per MDN Web Docs: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript">https://developer.mozilla.org/en-US/docs/Web/JavaScript</a></p><blockquote>JavaScript (JS) is a lightweight, interpreted, or <a href="https://en.wikipedia.org/wiki/Just-in-time_compilation">just-in-time</a> compiled programming language with <a href="https://developer.mozilla.org/en-US/docs/Glossary/First-class_Function">first-class functions</a>. While it is most well-known as the scripting language for Web pages, <a href="https://en.wikipedia.org/wiki/JavaScript#Other_usage">many non-browser environments</a> also use it, such as <a href="https://developer.mozilla.org/en-US/docs/Glossary/Node.js">Node.js</a>, <a href="https://couchdb.apache.org/">Apache CouchDB</a>, and <a href="https://opensource.adobe.com/dc-acrobat-sdk-docs/acrobatsdk/">Adobe Acrobat</a>. JavaScript is a <a href="https://developer.mozilla.org/en-US/docs/Glossary/Prototype-based_programming">prototype-based</a>, multi-paradigm, single-threaded, dynamic language, supporting object-oriented, imperative, and declarative (e.g. functional programming) styles.</blockquote><p>But in my words, Javascript is a simple scripting language used to implement complex features on web pages, It helps to render data dynamically to your web pages. JavaScript is primarily a client-side language it lets you add functionality and behaviors to your website, allowing your website’s visitors to interact with content in many imaginative ways.</p><h3>Let’s build your first web page that uses javascript to update web page content.</h3><p>I would like to build a simple clock that updates time every second. below code will help you to update the HTML element located in your webpage having an ID of <strong>datetime</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d4IUDWsEFaEOvCN8g1eQMA.png" /></figure><p>The next article will discuss more how the above code works and we were going to discuss various javascript keywords that we used in the above code.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5958f63e5fc8" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>