<?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 Ashutosh Anand Tiwari on Medium]]></title>
        <description><![CDATA[Stories by Ashutosh Anand Tiwari on Medium]]></description>
        <link>https://medium.com/@ashumsd7?source=rss-4d73b4a42d24------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*0D1st9RfOWsQyS8SJml2qg.png</url>
            <title>Stories by Ashutosh Anand Tiwari on Medium</title>
            <link>https://medium.com/@ashumsd7?source=rss-4d73b4a42d24------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 19 Nov 2026 11:16:44 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ashumsd7/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[How JavaScript runs on servers? All about Node.Js ! Part 1]]></title>
            <link>https://medium.com/@ashumsd7/how-javascript-runs-on-servers-all-about-node-js-part-1-892352239d19?source=rss-4d73b4a42d24------2</link>
            <guid isPermaLink="false">https://medium.com/p/892352239d19</guid>
            <category><![CDATA[ashutosh-anand-tiwari]]></category>
            <category><![CDATA[servers]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[node-js-tutorial]]></category>
            <category><![CDATA[dns]]></category>
            <dc:creator><![CDATA[Ashutosh Anand Tiwari]]></dc:creator>
            <pubDate>Sat, 24 Aug 2024 17:09:04 GMT</pubDate>
            <atom:updated>2024-08-24T17:55:36.941Z</atom:updated>
            <content:encoded><![CDATA[<h3>How JavaScript runs on servers? All about Node.Js ! Part 1/2</h3><h3>JavaScript on Servers</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/0*lWIvTBIgtwN9jqWQ.jpg" /></figure><p>As we know now JS can also run outside of browsers on server.</p><h3>What is server ?</h3><p>avaScript runs on a server, but what exactly is a server? A server is simply a remote computer. When you run your React app locally, you call it a “local server” because your system is serving the page. A server is just a machine that provides a service or serves a page. If the computer providing this service is in a different location, like another country, it’s called a remote or cloud server. Hope that makes sense! Now, let’s move on…</p><h3>Client Server Communication</h3><p>Now, we know a server is just a computer located far from us that can handle requests. Suppose you’re reading this blog on <a href="http://heyashu.in/"><strong>heyashu.in</strong></a>. When you type this URL into your browser, your local computer sends a request. The internet processes this request and directs it to the server. Every domain is linked to an IP address through DNS because humans can’t easily remember IP addresses like “54.161.234.33.” DNS translates the domain name to the correct IP address, and the server serves your page. Domain name is what you buy from GoDady and Hostinger and other websites.</p><p>Running JavaScript on a server is a big advantage because it allows a single developer with JavaScript knowledge to manage both the frontend and backend. If you know JavaScript, you can become a full-stack engineer. Don’t worry; you’ll get there with this course or by reading the notes!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/881/0*FBe4nOqjP-WYhEne.jpg" /></figure><p><a href="https://heyashu.in/tech/notes"><strong>Image Credit</strong></a></p><h3>Story about JS Engine and Node.js</h3><p>You know how JavaScript runs in browsers? Guess, guess! It’s the JavaScript engine! 🧠 Every browser has its own JS engine. It takes the JS code and converts it. But wait, isn’t the JS engine also software? Yep, it’s a program! And what language is it written in? Hmm, what comes after C? D? Nope, it’s C++! 🤓</p><p>Most JS engines, like the V8 engine in Chrome, are written in C++. Check out the <a href="https://github.com/v8/v8"><strong>GitHub repo of V8 JS engine</strong></a>. Over 70% of the code is in C++! 🚀</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/878/0*YhfAn-1apSnw-7N5.jpg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/873/0*3-m1FojWzs5oN0KL.jpg" /></figure><p>Image Credit : <a href="https://github.com/v8/v8"><strong>Guithub repo of v8 JS engine</strong></a></p><h3>Story of v8 the chrome’s Engine</h3><p>V8 is written in C++ and helps run JavaScript and WebAssembly. It executes JavaScript code, but it’s not the whole story! 🤔 You can learn more about WebAssembly by Googling it. V8 follows <a href="https://stackoverflow.com/questions/4269150/what-is-ecmascript"><strong>ECMA standards</strong></a> (they decide what features to add!). Every JS engine is written differently, converting JS code to machine code.</p><p>Imagine this: Your JS code ➡️ V8 Engine (C++) ➡️ Machine Code.</p><p>And guess what? V8 can be embedded in any C++ application. So, if your system runs C++, you can run JavaScript through V8! 🖥️</p><p>But wait, if V8 is the hero, what’s Node.js? 🤷‍♂️ Isn’t V8 enough? Well, V8 is just for JavaScript (ECMAScript) and is designed for the web. Node.js wraps around V8, giving it superpowers! Node.js adds the ability to handle HTTP requests, access databases, and more. It makes JavaScript capable of doing things beyond just running code.</p><p>And remember, Node.js is also written in… what comes after C? Yep, C++! Not D, haha! So, Node.js is built in C++, with V8 as a dependency, making it all powerful! 💥</p><h3>Node.Js Runtime</h3><p>V8 + Node.js together create the Node.js runtime environment. This runtime allows JavaScript to run outside the browser, like on a server.</p><p>NOTE: Node.js isn’t just C++ code. About 25% of its code is written in JavaScript, which you can see in the screenshot above. It also uses various JavaScript APIs and capabilities, combining both C++ and JavaScript to give developers the power to build versatile applications. 🚀</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/928/0*MFgCjSaHQkU1dVvU.jpg" /></figure><p><a href="https://wanganator414.github.io/2019/08/02/JSRuntime"><strong>Image Credit</strong></a></p><h3>Why Node Js and v8 is written C++ ?</h3><p>As we know, computers understand only binary code — 010101010! This is the language that directly talks to computer hardware. If you’re lost, just remember: binary (010101) is called a low-level or machine-level language. 🖥️</p><p>Then came middle-level languages, also called assembly languages, like ADD A, B. Now, let&#39;s talk about high-level languages—what comes after B? Tell, tell! Don’t say B++! 😂 No such language! After B, it’s C, then C++, and then Java, JavaScript, etc. These high-level languages are human-friendly.</p><p>V8 and other JS engines take JavaScript (high-level) and convert it into machine code. If you’re curious, Google assembly languages and get familiar with high, middle, and low-level languages. Enjoy learning!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/913/0*hcCqMPHDVE51LW_l.jpg" /></figure><p><a href="https://www.cs.mtsu.edu/~xyang/2170/computerLanguages.html"><strong>Image credit</strong></a></p><h3>Browsers and their engines</h3><p>Here is an overview of popular browsers and their corresponding JavaScript engines:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/915/0*rZljy5ZJhTQeP5Z-.jpg" /></figure><p><a href="https://www.lambdatest.com/blog/browser-engines-the-crux-of-cross-browser-compatibility/"><strong>Image Credit</strong></a></p><h3>Other use full words</h3><p>Remember and google these words to know more</p><ul><li>Web Assembly</li><li>Crosss Platform</li><li>ECMAScript ( ES6)</li><li>Guthub repo of node js and v8 its dependency</li><li>Arm Processor and x86</li><li>Microprocessor</li></ul><p>And that’s a wrap for this episode! 🎬 Now take a break, spread the word, and share this blog with your friends! Don’t forget to ⭐️ star <a href="https://github.com/ashumsd7/heyashu/tree/main/src/data/mardown/notes/namaste-node-js-s1-by-as"><strong>this repo</strong></a> if you found it helpful. And if you spot anything wrong, feel free to fork the repo and contribute!</p><p>Let’s meet in the next episode! Until then, tb tak chalte hai duaao me yaad rakhna 🙏</p><p>Goodbye from Ashu!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=892352239d19" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Syntax, Expression, and Statements]]></title>
            <link>https://medium.com/@ashumsd7/syntax-expression-and-statements-09e98c8f415d?source=rss-4d73b4a42d24------2</link>
            <guid isPermaLink="false">https://medium.com/p/09e98c8f415d</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[syntax]]></category>
            <category><![CDATA[basics]]></category>
            <dc:creator><![CDATA[Ashutosh Anand Tiwari]]></dc:creator>
            <pubDate>Thu, 22 Aug 2024 10:31:17 GMT</pubDate>
            <atom:updated>2024-08-22T10:31:17.560Z</atom:updated>
            <content:encoded><![CDATA[<h3>Syntax, Expression, and Statement in JavaScript</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/677/0*tqRFUquhwQpkLz4f.jpg" /><figcaption><a href="https://heyashu.in/blogs/what-are-syntax-and-expressions-in-js">https://heyashu.in/blogs/what-are-syntax-and-expressions-in-js</a></figcaption></figure><h3>How do we communicate?</h3><p>As we know, when developing something, we write code. When we want a computer to perform a task, we give it instructions. For example, if you want to use the calculator on your computer, you open the app and type something like 2 + 2, and the system will give you the output 4. This means you have given an instruction to the computer, and it has provided you with the output.</p><p>Now, lets discuss more about the instructions you provide to computers or any software. Generally, we communicate with someone in a language they understand.</p><p>For instance, if you meet a Chinese person and start speaking in Tamil, will they understand? The answer is NO.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/534/0*EreOC5ElQ8tfj1Xf.jpg" /><figcaption><a href="https://heyashu.in/blogs/what-are-syntax-and-expressions-in-js">https://heyashu.in/blogs/what-are-syntax-and-expressions-in-js</a></figcaption></figure><p>Similarly, when you write 2 + 2 in your system, does the system understand it directly? The answer is also NO.</p><p>So, how is it possible for a Chinese person to understand Tamil or for your system to understand 2 + 2?</p><p>The first thing that comes to mind is that you need some kind of mediator or translator who translates Tamil into Chinese and 2 + 2 into a language that the computer can understand.</p><p>Here comes the role of Compilers/Translators, which translate one type of input into another type of instruction so that the target person/system can understand.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/751/0*biZ37QkzSgwILzD2.jpg" /><figcaption><a href="https://heyashu.in/blogs/what-are-syntax-and-expressions-in-js">https://heyashu.in/blogs/what-are-syntax-and-expressions-in-js</a></figcaption></figure><p>But there’s one more thing we have to notice. Guess what?</p><p>The input you are giving, whether it’s Tamil or 2 + 2, should follow some rules. Otherwise, your translator will be confused, right?</p><p>That’s why the language you’re writing or speaking should also have some rules. Isn’t it?</p><p>So, you have already got the definition of syntax.</p><h3>Syntax</h3><p>The rules of valid format and combination of instructions in a computer language are called syntax.</p><h3>Statement</h3><p>In the English language, as you know, a statement is a group of meaningful words. Similarly, in computer language, a statement is a group of words, numbers, and operators (like +, -, /, *) that perform a specific task.</p><pre>a = b * 5;    // is a statement</pre><pre>// where = and * are operators<br>// a and b are variables<br>// 5 is a literal value or fixed value</pre><h3>Expression</h3><p>If you want to remember this forever, here’s a trick for you: “E” comes before “S” in the alphabet. So, statements are made from one or more expressions.</p><p>An expression is just a variable, a value, or a combination of both.</p><pre>2 is : literal value expression<br>b is  : variable expression<br>b * 2 : arithmetic expression<br>a = b * 2 : assignment expression</pre><p>We will discuss more on Function Expression and Declaration in the next blog.</p><p>Be healthy and keep smiling. Bye-bye 👋!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=09e98c8f415d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Data types in JavaScript : Quick Revise]]></title>
            <link>https://medium.com/@ashumsd7/data-types-in-javascript-quick-revise-be7410dc6ef7?source=rss-4d73b4a42d24------2</link>
            <guid isPermaLink="false">https://medium.com/p/be7410dc6ef7</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[basics]]></category>
            <category><![CDATA[newbie]]></category>
            <category><![CDATA[data-type]]></category>
            <category><![CDATA[begginer]]></category>
            <dc:creator><![CDATA[Ashutosh Anand Tiwari]]></dc:creator>
            <pubDate>Wed, 21 Aug 2024 12:35:23 GMT</pubDate>
            <atom:updated>2024-08-22T19:19:56.598Z</atom:updated>
            <content:encoded><![CDATA[<h3>Data types in JavaScript : Quick Revise</h3><h3>Data Types</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/753/1*Jpz7dlNyp1k7EhZdl-x6Sg.jpeg" /><figcaption><a href="https://heyashu.in/tech/notes/javascript-code-snippets-by-ashutosh-anand-tiwari">heyashu.in</a></figcaption></figure><p>There are total 8 built in data types in JavaScript.</p><ol><li>string</li><li>number</li><li>boolean</li><li>null</li><li>undefined</li><li>object</li><li>symbol ( ES6 feature)</li><li>BigInt</li></ol><h3>typeof Operator</h3><p>JavaScripts Provides typeof operator to check the value and its type</p><pre>var a;</pre><pre>typeof a; // undefined ( because there is no value in it)</pre><pre>a =&#39;JS Snippets&#39;<br>typeof a; // string</pre><pre>a=23;<br>typeof a; // number</pre><pre>a= undefined;<br>typeof a; // undefiend</pre><pre>a= true;<br>typeof a; // boolean</pre><pre>a= null;<br>typeof a; // object ( this is bug in JS, Google it to learn more about it)</pre><pre>a= {name:&#39;Ashutosh&#39;}<br>typeof a; // object</pre><p>Thanks for reading<br>For more quick snippets checkout<br><a href="https://heyashu.in/tech/notes/javascript-code-snippets-by-ashutosh-anand-tiwari">20+ JavaScript Quick Snipptes</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=be7410dc6ef7" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>