<?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 Deepa Jarout on Medium]]></title>
        <description><![CDATA[Stories by Deepa Jarout on Medium]]></description>
        <link>https://medium.com/@deepajarout?source=rss-fe20e98832dc------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*mL5Wn_MAgPYZY8CLTRJXIw.jpeg</url>
            <title>Stories by Deepa Jarout on Medium</title>
            <link>https://medium.com/@deepajarout?source=rss-fe20e98832dc------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 10:27:43 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@deepajarout/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[Callbacks & Callback Hell: The JavaScript Love Story Gone Wrong]]></title>
            <link>https://deepajarout.medium.com/callbacks-callback-hell-the-javascript-love-story-gone-wrong-32e014bb68aa?source=rss-fe20e98832dc------2</link>
            <guid isPermaLink="false">https://medium.com/p/32e014bb68aa</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[callback]]></category>
            <category><![CDATA[javascript-tips]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[interview]]></category>
            <dc:creator><![CDATA[Deepa Jarout]]></dc:creator>
            <pubDate>Tue, 22 Jul 2025 11:34:02 GMT</pubDate>
            <atom:updated>2025-07-22T11:35:44.008Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>JavaScript, </strong>The language of the web. The land of undefined, mysterious bugs, and—our topic for today—<strong>callbacks</strong>. Let’s dive into this magical (and sometimes tragic) world .</p><h3>What’s a Callback Anyway?</h3><p>A <strong>callback</strong> is just a <strong>function passed as an argument to another function</strong>, to be executed <em>later</em>. It’s like saying:</p><blockquote><em>“Hey function, when you’re done, call </em>this number<em>.”</em></blockquote><p>📦 JavaScript is <strong>asynchronous</strong>, meaning it can do many things at once (like a multi-tasking chef), so we often <strong>pass functions to be executed after something completes</strong> — that’s where callbacks come in.</p><p>— — — — — — — — — — — — — — — — — — —</p><p>Imagine you’re hungry (again). You call your favorite pizza place:</p><blockquote><em>“Hey, I want a large Margherita. Extra cheese. Call me when it’s done!”</em></blockquote><p>That’s a <strong>callback</strong>.</p><p>You’re not sitting by the phone doing nothing. You’re watching Netflix, maybe doom-scrolling memes. But when the pizza is done, the pizza place <strong>calls you back</strong>. That’s how <strong>callbacks</strong> work in JavaScript.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PDPHTO7Y5qNxzOjvq4ggZg.png" /></figure><p>👉 Here, eatPizza is the callback passed to orderPizza. When the pizza is ready, <strong>JavaScript calls back</strong> your function and lets you enjoy your pizza. 🛵<br>Once the asynchronous task (simulated using setTimeout) completes, the callback is executed.</p><h3>What is Callback Hell?</h3><p>Now imagine you want to:</p><ol><li>Order a pizza.</li><li>When it’s ready, eat it.</li><li>Then order dessert.</li><li>Then eat that.</li><li>Then update your Insta story.</li><li>Then go to sleep because you’re full.</li><li>If you write that with <strong>nested callbacks</strong>, it becomes a messy, over-indented monster:</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RuwRjn0wmnC_wwF8_pwe8Q.png" /></figure><p>This type of deeply nested callback structure is known as <strong>Callback Hell</strong> or the <strong>Pyramid of Doom or The Spaghetti Code Era. </strong><br> It’s:</p><ul><li>Hard to read and understand.</li><li>Difficult to debug and test.</li><li>Prone to errors and hard to maintain.</li></ul><h3>The Escape: Promises &amp; async/await</h3><p>Callbacks are not evil. But when misused, they create code that’s hard to read, debug, and maintain. That’s why JavaScript gave us a gift: <strong>Promises</strong> and later, <strong>async/await</strong>.</p><p>🧙🏻‍♂️ <strong>Promises to the Rescue</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V9yqOLEWPaTd3AHyLgLOmQ.png" /></figure><p><strong>😌 async/await: Code Nirvana</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7A35bGFz41Ub16PEAc5vEQ.png" /></figure><ul><li>async/await is syntactic sugar over Promises.</li><li>It makes asynchronous code look synchronous, improving <strong>readability</strong> and <strong>error handling</strong> (especially with try/catch).</li></ul><h3>✨ Professional/Interview-Ready Explanation</h3><blockquote><em>In JavaScript, a </em><strong><em>callback</em></strong><em> is a function passed into another function as an argument, which is then invoked inside the outer function to complete some action. This is common in asynchronous operations like network requests, file handling, or timers.</em></blockquote><blockquote><em>However, when callbacks are nested within callbacks, creating a deep nesting structure, it results in </em><strong><em>callback hell</em></strong><em>, which decreases code readability and increases complexity.</em></blockquote><blockquote>Q: What’s the issue with callback-based asynchronous programming in JS?<br> A: Callback hell: reduced readability, deep nesting, and tightly coupled code.</blockquote><blockquote><strong>Q:</strong> How do you solve callback hell?<br> <strong>A:</strong> Use Promises or async/await for flatter, cleaner async flow control.</blockquote><h3>🧑‍💻 Summary</h3><ul><li>A <strong>callback</strong> is a function passed as an argument to another function, to be executed later.</li><li>Callbacks are fundamental to <strong>asynchronous programming</strong> in JavaScript (e.g., HTTP requests, timers, event handlers).</li><li>However, <strong>nested callbacks</strong> can lead to <strong>“Callback Hell”</strong>, a situation where the code becomes deeply nested, unreadable, and hard to maintain.</li><li>Modern JavaScript mitigates this with <strong>Promises</strong> and <strong>async/await</strong>, offering cleaner, flatter, and more maintainable async code.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=32e014bb68aa" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Smart Financial Calculator — Secure Your Future with Two Powerful Tools]]></title>
            <link>https://deepajarout.medium.com/smart-financial-calculator-secure-your-future-with-two-powerful-tools-34235f5e85c4?source=rss-fe20e98832dc------2</link>
            <guid isPermaLink="false">https://medium.com/p/34235f5e85c4</guid>
            <category><![CDATA[financial-services]]></category>
            <category><![CDATA[finacial-freedom]]></category>
            <category><![CDATA[finance]]></category>
            <category><![CDATA[financial-planning]]></category>
            <category><![CDATA[calculator]]></category>
            <dc:creator><![CDATA[Deepa Jarout]]></dc:creator>
            <pubDate>Fri, 11 Jul 2025 18:03:14 GMT</pubDate>
            <atom:updated>2025-07-11T18:03:14.642Z</atom:updated>
            <content:encoded><![CDATA[<h3>Smart Financial Calculator — Secure Your Future with Two Powerful Tools</h3><p>In today’s unpredictable world, financial planning is not a luxury — it’s a necessity. That’s where <a href="https://calculator.lifeoutlook.org/"><strong>calculator.lifeoutlook.org</strong></a> comes in.</p><p>This <strong>Smart Financial Calculator</strong> is a simple yet powerful web app designed to help you plan your financial future with confidence. Whether you’re preparing for retirement or just getting started with saving, this tool gives you the clarity you need to make informed decisions.</p><p>At <a href="https://calculator.lifeoutlook.org/">calculator.lifeoutlook.org</a>, we’ve simplified it with two smart, intuitive calculators designed to answer two of the most important questions:</p><h3>📈 1. “How Will My Investments Grow Over Time?”</h3><h3>🔍 Purpose:</h3><p>This calculator projects how much you will have <strong>by the time you retire</strong> based on your current savings, monthly contributions, and expected growth rates.</p><h3>💡 Use Case Example:</h3><blockquote><em>“If I start with ₹2,00,000 and invest ₹10,000/month with a 10% interest rate, how much will I have when I retire at age 60?”</em></blockquote><h3>🛠️ How It Works:</h3><ul><li>✅ Select your country (auto-fills inflation rate)</li><li>✅ Enter:</li><li>Initial Savings</li><li>Monthly Contribution</li><li>% Increase in Monthly Contribution per year</li><li>Interest Rate (% per annum)</li><li>Inflation Rate (% per annum)</li><li>Current Age &amp; Retirement Age</li><li>Monthly Withdrawal After Retirement</li><li>✅ Click <strong>Calculate</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/962/1*wS9ikllJHnOpnxZ9lMIWMg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hVSv2Hn_bG_BFelsWWq8Qw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7UgtrTybX33wM7g9MygZZQ.png" /></figure><p>📊 The tool estimates:</p><ul><li>Your <strong>total wealth at retirement</strong></li><li>How long that wealth will last during retirement based on your monthly withdrawals.</li></ul><h3>🧭 2. “How Much Should You Save to Survive X Years?”</h3><h3>🔍 Purpose:</h3><p>This calculator helps you determine how much money you need <strong>at the time of retirement</strong> to sustain yourself for a specific number of years (e.g., 30 years), considering expected monthly withdrawals and inflation.</p><h3>💡 Use Case Example:</h3><blockquote><em>“I want to retire and withdraw ₹50,000/month for 30 years. How much should I have saved before retirement?”</em></blockquote><h3>🛠️ How It Works:</h3><ul><li>✅ Select your country (automatically fills inflation rate)</li><li>✅ Enter:</li><li>Desired Monthly Withdrawal (e.g., ₹50,000)</li><li>Number of Years to Withdraw (e.g., 30)</li><li>Expected Post-Retirement Interest Rate (%)</li><li>Expected Inflation Rate (%)</li><li>✅ Click <strong>Calculate</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/998/1*ENxYhrj-iL4J8XQkX8VvKg.png" /></figure><p>📊 The tool calculates</p><p>how much you need at retirement to sustain that lifestyle for the selected duration.</p><h3>🌍 Country-Specific Inflation Insights</h3><p>Both calculators offer a country selector which auto-fills the <strong>inflation rate</strong> based on your country — making the forecasts <strong>more realistic and location-aware</strong>.</p><h3>Why Use This Tool?</h3><p>✅ Simple and clean UI<br> ✅ No login required<br> ✅ Country-based inflation adjustment<br> ✅ Tailored for individuals and early planners<br> ✅ 100% Free</p><h3>Start Planning Your Future Today</h3><p>👉 Visit <a href="https://calculator.lifeoutlook.org/"><strong>https://calculator.lifeoutlook.org</strong></a><br> Fill in your details, hit calculate, and get a realistic view of your financial future.</p><p>Remember, <strong>your future is created by what you do today — not tomorrow.</strong><br> Start now. Plan smarter. Live better.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=34235f5e85c4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Currying Function In JavaScript]]></title>
            <link>https://deepajarout.medium.com/currying-function-in-javascript-ce6ed7a595fa?source=rss-fe20e98832dc------2</link>
            <guid isPermaLink="false">https://medium.com/p/ce6ed7a595fa</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[currying]]></category>
            <category><![CDATA[functional-programming]]></category>
            <category><![CDATA[developer]]></category>
            <category><![CDATA[function]]></category>
            <dc:creator><![CDATA[Deepa Jarout]]></dc:creator>
            <pubDate>Thu, 16 Feb 2023 17:27:04 GMT</pubDate>
            <atom:updated>2023-02-16T17:27:04.406Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Currying</strong>, a technique used in functional programming, allows you to turn a function with numerous arguments into a series of nesting functions in JavaScript. It gives back a new function that anticipates the following parameter inline.</p><p>In other words, rather than accepting every argument at once, a function accepts the first one and returns a new function, which accepts the second and returns a new function, which accepts the third, and so on, until every argument has been satisfied.</p><blockquote><strong>What is JavaScript Currying Function?</strong><br>In JavaScript, currying converts a function with several arguments into a sequence of nested functions, each of which only accepts one argument. Currying aids in the development of higher order functions and helps you avoid passing the same variable more than once.</blockquote><p>Specifically, when we change a function call from multiply(1,2,3) to multiply(1)(2) (3).</p><p>A function’s <strong>arity</strong> is another word for the number of arguments it accepts.</p><figure><img alt="two-arity function by deepajarout" src="https://cdn-images-1.medium.com/max/788/1*9aWG7T5N8iKGk2ywJxM_lw.png" /><figcaption>two-arity function by deepajarout</figcaption></figure><figure><img alt="three-arity function by deepajarout" src="https://cdn-images-1.medium.com/max/780/1*Xxf1gr1VnKpqwHdR5vx9Bw.png" /><figcaption>three-arity function by deepajarout</figcaption></figure><p>multiply is a two-arity function that accepts two arguments, and multiply accepts three arguments (three-arity function).</p><p>Curried functions are built by chaining closures and simultaneously defining and returning their inner functions.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ce6ed7a595fa" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is the second parameter in parseInt?]]></title>
            <link>https://deepajarout.medium.com/what-is-the-second-parameter-in-parseint-1d93bb37b0b1?source=rss-fe20e98832dc------2</link>
            <guid isPermaLink="false">https://medium.com/p/1d93bb37b0b1</guid>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[javascript-development]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[javascript-tips]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Deepa Jarout]]></dc:creator>
            <pubDate>Sun, 08 Jan 2023 17:30:19 GMT</pubDate>
            <atom:updated>2023-01-08T17:30:19.030Z</atom:updated>
            <content:encoded><![CDATA[<p>The <strong>JavaScript parseInt</strong> method will be discussed in this <strong>article</strong>. When a string is parsed <strong>(broken down)</strong>, this function returns an integer or <strong>NaN</strong>. <strong>(Not a Number)</strong>.</p><h4><strong>Operation of the parseInt function</strong></h4><p>In order to extract an integer from a string, the parseInt function is typically used. By doing so, the returned value is converted to a real number.</p><p><strong>Syntax -</strong>parseInt(string)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/410/1*AtrZxF9JJBft0gbRPp25MQ.png" /><figcaption>parseInt() by deepajarout</figcaption></figure><p>10 is not a real integer in the example above; it is a string. Due to the fact that we multiply 2 by a string that only has a numerical representation, we get the value 20 when we do so.</p><p>By removing 10 from the string and turning it into an actual number, we can use the parseInt function. An illustration would be:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/678/1*dfZ9Uxn0NFKdEW5NJLa7JA.png" /><figcaption>parseInt() by deepajarout</figcaption></figure><p>Now that 10 has been removed from the string, the function has changed it to a real integer.</p><p>10. From “10” to 10.</p><p><strong>Remember how we said the parseInt function may return either an integer or NaN? When would we then obtain a NaN value?</strong></p><p>When a string has text prior to a number, this occurs. Because the parseInt method only looks at the first value starting the string, phrases like “deepa” will provide a NaN value. The return value is NaN if the value is not a number.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/633/1*uW9_TA2HCgylgtiZD1CMpw.png" /><figcaption>parseInt() by deepajarout</figcaption></figure><h4>Redix is a parameter</h4><p>The <strong>redix parameter is a second one that the parseInt method allows</strong>. Which number system to use is specified by this argument. The default value is 10 if the redix is missing.<br><strong>Syntax:</strong></p><pre>parseInt(string, radix)</pre><p>The number is typically between 2 and 36. Redix returns NaN if the value is larger than 36 or less than 2, respectively.</p><p>The number in the string should be translated from its duodecimal value to its decimal value if we were to supply a redix of 12, which means.</p><p>Here is a brief illustration:</p><figure><img alt="deepajarout" src="https://cdn-images-1.medium.com/max/655/1*BxObu3jcPTT34Nk5nfW2Pg.png" /><figcaption>parseInt() by deepajarout</figcaption></figure><p>Due to the fact that 30’s duodecimal value in base 10 (decimal) is 36, we receive the value 12 back.</p><p><strong>Conclusion</strong></p><p>We learned how to extract numbers from texts using the parseInt function in this article.</p><p>We also learned how the redix argument may be used to specify the number system to be applied when converting the returned integer.</p><p>Many thanks for reading!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1d93bb37b0b1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Most Asked Interview Question -Object.freeze() VS Object.seal()]]></title>
            <link>https://deepajarout.medium.com/most-asked-interview-question-object-freeze-vs-object-seal-c05bb366e613?source=rss-fe20e98832dc------2</link>
            <guid isPermaLink="false">https://medium.com/p/c05bb366e613</guid>
            <category><![CDATA[development]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[functional-programming]]></category>
            <category><![CDATA[javascript-development]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Deepa Jarout]]></dc:creator>
            <pubDate>Sun, 01 Jan 2023 10:40:08 GMT</pubDate>
            <atom:updated>2023-01-01T10:40:08.199Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/637/1*7MJu8iFfK7GvonKTS427bA.png" /><figcaption>difference between object.freeze() and object.seal() by deepajarout</figcaption></figure><p>In JavaScript, both <strong>freeze</strong> and <strong>seal</strong> are used to construct non-extendable objects, but they differ in several ways. <br>When compared to <strong>Object.freeze()</strong>, <strong>Object.seal()</strong> permits modifications to an object’s current properties.</p><p>Let’s dive right into the topic and compare and know when to use which function and why.</p><h4><strong>Object.freeze()</strong></h4><p>An object becomes impervious to all modifications when it uses the Object.freeze() function.</p><p>It prevents properties from being <strong>added to or removed</strong> from the object; <strong>calling delete will return false.</strong></p><p>Trying to change the value of the sealed object itself may result in a TypeError (most commonly in strict mode)</p><p>It <strong>prohibits the modification</strong> of any current <strong>properties</strong>.</p><p>Its return type is of the <strong>object type</strong>.</p><figure><img alt="object.freeze() by deepajarout" src="https://cdn-images-1.medium.com/max/925/1*AycI_YyksqOX3AziHa-G7g.png" /><figcaption>object.freeze() by deepajarout-(figure a)</figcaption></figure><blockquote>Figure (a), demonstrates how to build a non-extensible object using the Object.freeze() method, with the output of “<strong>Deepa Jarout</strong>” and a restriction on changing the object’s current value.</blockquote><h4><strong>Object.seal()</strong></h4><p>Existing properties are protected against deletion by <strong>Object.seal()</strong>, but they are not shielded from modifications from the outside world.</p><p>It <strong>stops the sealed object</strong> from having any <strong>additional or removed attributes</strong>, and invoking <strong>delete will return false.</strong></p><p>It prevents the conversion of any existing property from “<strong>data descriptors” to “accessor descriptors”</strong> (and vice versa), and it prevents any attribute of accessor descriptors from being changed at all (whereas data descriptors can change their writable attribute, and their value attribute if writeable is true).</p><p>Can cause a <strong>TypeError if the value of the sealed object</strong> itself is attempted to be changed (most commonly in strict mode)</p><figure><img alt="object.seal() by deepajarout(figure-b)" src="https://cdn-images-1.medium.com/max/927/1*kiJt7UItxZdFnq-d8gxrdw.png" /><figcaption>object.seal() by deepajarout- figure-(b)</figcaption></figure><blockquote>Figure(b), illustrates how an extensible object is created using <strong>Object.seal()</strong>, but it is still possible to change the object’s value, as shown when the name is modified to <strong>“Dishika Jarout”</strong>.</blockquote><h4>Performance</h4><p>Depending on the browser, sealing or freezing an object may impact how quickly it is enumerated:</p><p><strong>Firefox:</strong> There is no influence on enumeration performance.<br><strong>I.E.</strong>, there is little impact on enumeration performance.<br>With sealed or frozen items, <strong>Chrome’s</strong> enumeration performance is faster.<br><strong>In Safari, </strong>counting sealed or frozen objects takes 92% longer (as of 2014)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c05bb366e613" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[80+ Most Asked Javascript Interview Questions(TCS, Accenture, IBM, Infosys, etc)]]></title>
            <link>https://deepajarout.medium.com/80-most-asked-javascript-interview-questions-tcs-accenture-ibm-infosys-etc-29cd395096bd?source=rss-fe20e98832dc------2</link>
            <guid isPermaLink="false">https://medium.com/p/29cd395096bd</guid>
            <category><![CDATA[interview]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[questions]]></category>
            <category><![CDATA[ibm]]></category>
            <category><![CDATA[concept]]></category>
            <dc:creator><![CDATA[Deepa Jarout]]></dc:creator>
            <pubDate>Thu, 22 Sep 2022 12:05:31 GMT</pubDate>
            <atom:updated>2025-07-22T11:41:01.726Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/687/1*LuJlAbxusS_-RGWwL7KYCQ.png" /><figcaption>JavaScript Interview Questions</figcaption></figure><ol><li><a href="https://deepajarout.medium.com/event-capturing-event-bubbling-basic-javascript-concepts-874d4c73f52f"><strong>What is event bubbling in JavaScript?</strong></a></li><li><a href="https://deepajarout.medium.com/when-do-we-have-to-use-apply-call-bind-bae0e896b6ec"><strong>Explain bind, call and apply.</strong></a></li><li><a href="https://deepajarout.medium.com/difference-between-map-and-foreach-d17ae63337d4"><strong>Difference between map and for each</strong></a><strong>.</strong></li><li><a href="https://deepajarout.medium.com/javascripts-basic-idea-of-hoisting-63612140da87"><strong>What is hoisting?</strong></a></li><li><a href="https://deepajarout.medium.com/when-do-we-have-to-use-apply-call-bind-bae0e896b6ec"><strong>Can you share the code of call and bind?</strong></a></li><li><a href="https://deepajarout.medium.com/when-do-we-have-to-use-apply-call-bind-bae0e896b6ec"><strong>What is the difference between bind and call?</strong></a></li><li>What is <strong>this </strong>keyword?</li><li><a href="https://deepajarout.medium.com/callbacks-callback-hell-the-javascript-love-story-gone-wrong-32e014bb68aa"><strong>Explain Callback &amp; Callback hell</strong></a></li><li>The difference between callback, promise, and async-await</li><li>Can you explain async-await and its advantages?</li><li>Explain Clouser in javaScript.</li><li><a href="https://deepajarout.medium.com/currying-function-in-javascript-ce6ed7a595fa"><strong>Explain curry in javaScript.</strong></a></li><li>Explain memory leak in JavaScript.</li><li>Internal working mechanism for JavaScript.</li><li>About the project and its scalability.</li><li>What is the lexical scope?</li><li>Explain the different methods of promise &amp; also explain when to use them. (promise.all, promise.allSettled etc)</li><li>Different ways to create objects in JavaScript. (there are 4 ways )</li><li>Explained the design pattern &amp; how u have implemented it in your project also?</li><li>What is a higher-order function?</li><li>What is the event emitter, and how do emit and listen to events?</li><li>What is a prototype in JavaScript?</li><li>What will u get a prototype of the object?</li><li>Explain cors?</li><li>What is the return value of reduce?</li><li>Is javaScript have a map data type?</li><li>Are you using OOPS in JavaScript?</li><li>What is Functional programming?</li><li>Explain the difference between for loop &amp; array.map, when to use them.</li><li>Explain the javaScript engine execution flow by taking below example: setTimeout(console.log()) and setImmeditae(console.log());</li><li>Describe JavaScript execution stack and event loop functionality.</li><li>How you can invoke HTTP calls from the server itself (superset modules)?</li><li>how you are handling dependency injections?</li><li>Can you pls explain the lifecycles of HTTP?</li><li>What is the middleware and where you have used it in your project? any example?</li><li><a href="https://medium.com/@deepajarout/callbacks-callback-hell-the-javascript-love-story-gone-wrong-32e014bb68aa"><strong>What is a callback, and why do we need it?</strong></a></li><li>What are the modules you are using all over the project?</li><li>Explain a few methods of arrays.</li><li>What are destructuring and spread Operators and their benefits of using it?</li><li><a href="https://medium.com/@deepajarout/callbacks-callback-hell-the-javascript-love-story-gone-wrong-32e014bb68aa"><strong>What is better to write in code, callback, or promises? Why?</strong></a></li><li>How you are doing testing in your team?</li><li>Why did you choose apache JMeter over other testing tools?</li><li>How we can use inheritance in JavaScript?</li><li>Why do we need JavaScript?</li><li>Difference between require and import.</li><li>What is some and every in JavaScript?</li><li><a href="https://deepajarout.medium.com/event-capturing-event-bubbling-basic-javascript-concepts-874d4c73f52f"><strong>What is event bubbling and capturing?</strong></a></li><li><a href="https://deepajarout.medium.com/most-asked-interview-question-object-freeze-vs-object-seal-c05bb366e613/"><strong>What are obj.freeze and obj.seal &amp; difference between them?</strong></a></li><li>What are the best ways to create objects?</li><li>Benefits of creating an object using Object.create</li><li>What is the state for a promise?</li><li>Which latest ECMA standard replaces promise?</li><li>How to handle catch in async await?</li><li>How to handle catch in async await without using try-catch?</li><li>Which tool you are using for coding &amp; why?</li><li>How do you debug the code?</li><li>How u learn new things &amp; new stack?</li><li>Which modules you are using for creating HTTP services &amp; why?</li><li>What is the difference between undefined and null?</li><li>What are interpolations in JavaScript?</li><li>Why nodeJs was created as a single-threaded language?</li><li>What are shallow cloning and deep cloning &amp; the difference between them?</li><li><a href="https://deepajarout.medium.com/what-is-the-second-parameter-in-parseint-1d93bb37b0b1"><strong>What is the second value in parseInt?</strong></a></li><li>What are event emitters and dispatchers?</li><li>What is the answer to a given question why? [] == [];</li><li><a href="https://deepajarout.medium.com/most-asked-interview-question-object-freeze-vs-object-seal-c05bb366e613"><strong>Difference between const vs Object.freeze() vs Object.seal()</strong></a></li><li>How you are invoking APIs from the front end?</li><li>What is the best way to copy the object and why?</li><li>How to deep clone?</li><li>Inbuilt methods of cloning the object vs loadash_clone? which one is better &amp; why?</li><li>What is the optimized way to sort the array?</li><li>Explain the different types of sorting Algorithms.</li><li>Is In-built JS sorting methods better or user custom sorting? explain why also?</li><li>What is the best way to create an object in the given option Object.create vs creating an object from new.</li><li>Adding a field to the const object is possible.</li><li>Can values be added to the const array?</li><li>How have singleton design patterns been implemented (at the code level)?</li><li>What distinguishes the arrow function from the standard function?</li><li>How do spread operators work?</li><li>Describe the ES6 feature.</li><li>What are some benefits of traditional for loop constructs vs for each?</li><li>What is the difference between this in an arrow function and a traditional function?</li><li>What are some dangers of closures?</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=29cd395096bd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is JSON Web Token(JWT)?]]></title>
            <link>https://deepajarout.medium.com/what-is-json-web-token-jwt-ac24b582ea13?source=rss-fe20e98832dc------2</link>
            <guid isPermaLink="false">https://medium.com/p/ac24b582ea13</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[rest]]></category>
            <category><![CDATA[json]]></category>
            <category><![CDATA[jwt]]></category>
            <dc:creator><![CDATA[Deepa Jarout]]></dc:creator>
            <pubDate>Fri, 16 Sep 2022 17:47:07 GMT</pubDate>
            <atom:updated>2022-09-16T17:47:07.831Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Using JSON Web Tokens is an open, accepted method of securely representing your user’s identity during a two-party interaction.</blockquote><p>You can use a JSON Web Token to identify your user when two systems exchange data rather than providing private credentials with each request. You can see how these methods can enhance client-server interactions by applying them to a REST API:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/872/1*CPixJ5Ntj0P9_U5UbKTOoQ.png" /></figure><p>A sign-in request is sent by the user or client app.</p><p>In this phase, the user effectively gives the API their login, password, or sign-in credentials.</p><p>Once the request has been authenticated, the API will provide a JSON Web Token and sign it with a secret key. The client application will then receive that token back from the API.</p><p>The client app will then get the token, confirm its authenticity on its end, and utilize it for each subsequent request.</p><p>As a result, the user can be authenticated without needing to provide their credentials any longer.</p><h3><strong>How a JWT is built?</strong></h3><p>JWT consists of three parts: a header, payload, and signature.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YeE1ROi6SdXvrhCwG7XjmA.png" /><figcaption>JWT</figcaption></figure><p><strong>Header: </strong>The header normally consists of two parts: the type of the token, which is JWT, and the technique that is employed, such as HMAC SHA256 or RSA SHA256. The first piece of the JWT is Base64Url encoded.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/592/1*rbvnn-N5lgt-MZwSBMesyA.png" /><figcaption>Header</figcaption></figure><p><strong>Payload:</strong> he claims can be found in the payload.</p><p>The following are some examples of registered claims: <strong>iss (issuer), exp (expiration period), sub (subject), and aud (audience)</strong>. While not required, these claims are suggested to offer a collection of practical, interoperable claims. Additional parameters, like employee role, that create bespoke claims may also be included in the payload. To generate the OpenID Connect user subject, the topic claim is typically utilized. The Liberty JVM server, however, can be set up to make use of a different assertion. The payload, which makes up the second component of the JWT, is Base64Url encoded.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/576/1*ia19JcFMNgYBZCkOPCnpFg.png" /><figcaption>payload</figcaption></figure><p><strong>Signature:</strong> The encoded header and payload are signed using the signature algorithm from the header to form the signature section. The JWT’s signature is used to confirm that the issuer is who they claim to be and to make sure the message hasn’t been altered along the route.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/592/1*V5LYORcZjC8wcdv8K5vE7w.png" /><figcaption>Signature</figcaption></figure><p>The “Authorization” request header with the scheme “Bearer” and JWT must be included in the incoming HTTP request for a REST API call.<br>The system checks the token’s signature and expiration date. If the verification process is successful, the JWT’s claims are utilized to identify a legitimate OMS user, who is then used to make the REST API call.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/835/1*zljPhRPbrv9z9Yb6L3zR9Q.png" /><figcaption>JWT token creation</figcaption></figure><p>Authorization:Bearer &lt;Signed JSON Web Token(JWT)&gt;</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ac24b582ea13" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What exactly is a network protocol?]]></title>
            <link>https://deepajarout.medium.com/what-exactly-is-a-network-protocol-15033b6660d1?source=rss-fe20e98832dc------2</link>
            <guid isPermaLink="false">https://medium.com/p/15033b6660d1</guid>
            <category><![CDATA[cryptography]]></category>
            <category><![CDATA[ip]]></category>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[networking]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Deepa Jarout]]></dc:creator>
            <pubDate>Sun, 28 Aug 2022 17:25:15 GMT</pubDate>
            <atom:updated>2022-08-28T17:25:15.679Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*cF-6sfJpeJ4lniRfDduywA.png" /><figcaption>INTERNET PROTOCOL BY DEEPAJAROUT</figcaption></figure><blockquote>A <strong>protocol</strong> is a set of instructions for formatting and processing data in networking. Computers have a common language known as <strong>network protocols</strong>.</blockquote><p>Even if the software and hardware used by the computers in a network may be very dissimilar, the usage of protocols allows them to communicate with one another.</p><p>Similar to how two humans from different parts of the world may not speak each other’s original languages but can communicate through a common third language, <strong>standardized protocols</strong> are like a common language that computers can utilize.</p><p>Computers can interact if they both use the <strong>Internet Protocol (IP)</strong>, just as the United Nations employs its six official languages to facilitate communication among its officials worldwide. However, they won’t be able to interact if one machine is using IP and the other isn’t familiar with it.</p><p>Different protocols for various types of processes are available on the Internet. The OSI model layer a protocol belongs to is frequently mentioned while discussing it.</p><h3><strong>What are the OSI model’s layers?</strong></h3><p>An abstract illustration of how the Internet functions are provided by the Open Systems Interconnection (OSI) model. It has seven layers, each of which represents a separate class of networking operations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/667/1*0WY970bKOXQWiEJcL7tUTg.png" /><figcaption>OSI MODEL BY DEEPAJAROUT</figcaption></figure><p>These networking functions are made feasible via protocols. For instance, the Internet Protocol (IP) is in charge of data routing by identifying the origin and destination of data packets*. Network-to-network communication is made feasible via IP. IP is therefore regarded as a network layer (layer 3) protocol.</p><p>Another illustration is the T<strong>ransmission Control Protocol </strong>(TCP), which guarantees the smooth transfer of data packets across networks. TCP is therefore regarded as a transport layer (layer 4) protocol.</p><blockquote>All data transferred across a network is split up into little segments called packets.</blockquote><h3><strong>What protocols are active at the network layer?</strong></h3><p>IP is a network layer protocol that handles routing, as was previously mentioned. The sole network layer protocol, though, is not this one.</p><p><strong>IPsec</strong>: Over a virtual private network, <strong>Internet Protocol Security </strong>(IPsec) establishes encrypted, authenticated IP connections (VPN). IPsec is technically not a protocol; rather, it is a collection of protocols that comprises the Encapsulating <strong>Security Protocol </strong>(ESP), <strong>Authentication Header </strong>(AH), and <strong>Security Associations </strong>(SA).</p><p><strong>ICMP:</strong> The Internet Control Message Protocol (ICMP) reports faults and gives status updates. For instance, if a router is unable to transport a packet, it will send an ICMP message back to the packet’s originator.</p><p><strong>IGMP:</strong> The Internet Group Management Protocol (IGMP) establishes one-to-many network connections. Multicasting enables numerous computers to receive data packets sent to a single IP address with the assistance of IGMP.</p><h3><strong>What further Internet protocols are there?</strong></h3><p>A few of the most crucial protocols to understand are:</p><p><strong>TCP:</strong> The transport layer protocol TCP, as previously mentioned, guarantees dependable data delivery. The two protocols are frequently referred to as TCP/IP because TCP is intended to be used alongside IP.</p><p><strong>HTTP:</strong> The World Wide Web, which is the portion of the Internet with which most users interact, is built on the Hypertext Transfer Protocol (HTTP). Between devices, it is employed to transport data. Because it delivers data into a format that applications, like a browser, may use immediately and without further interpretation, HTTP is a part of the application layer (layer 7). A computer’s operating system, not applications, manages the lower layers of the OSI model.</p><p><strong>HTTPS:</strong> The drawback of HTTP is that it is not encrypted, making it possible for any attacker to read any HTTP message that is intercepted. This is fixed by HTTPS (HTTP Secure), which encrypts HTTP transmissions.</p><p><strong>TLS/SSL:</strong> HTTPS encrypts data using the Transport Layer Security (TLS) protocol. Secure Sockets Layer was the previous name for TLS (SSL).</p><p><strong>User Datagram Protocol (UDP):</strong> At the transport layer, UDP is a quicker but less dependable substitute for TCP. It is frequently utilized in applications like gaming and video streaming, where quick data delivery is crucial.</p><h3><strong>What protocols are used by routers?</strong></h3><p>The most effective network paths to other routers are found by network routers using certain protocols. User data is not transferred via these protocols. Among the crucial network routing protocols are:</p><p><strong>BGP:</strong> Networks use the application layer protocol known as the Border Gateway Protocol (BGP) to broadcast the IP addresses that they are in control of. By using this knowledge, routers can choose which networks data packets should travel through en route to their final destinations.</p><p><strong>Enhanced Interior Gateway Routing Protocol (EIGRP):</strong> EIGRP measures the separation between routers. Routing tables, which are kept up-to-date by each router automatically, are broadcast to other routers in the network using EIGRP.</p><p><strong>OSPF:</strong> The Open Shortest Path First (OSPF) protocol determines the most effective network paths depending on a number of variables, such as distance and bandwidth.</p><p><strong>RIP:</strong> The Routing Information Protocol (RIP) is an earlier routing protocol that measures the separations between routers. Application layer protocols, like RIP, are used.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=15033b6660d1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[JavaScript’s Basic Idea Of Hoisting]]></title>
            <link>https://deepajarout.medium.com/javascripts-basic-idea-of-hoisting-63612140da87?source=rss-fe20e98832dc------2</link>
            <guid isPermaLink="false">https://medium.com/p/63612140da87</guid>
            <category><![CDATA[concepts-for-beginners]]></category>
            <category><![CDATA[hoisting]]></category>
            <category><![CDATA[function]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[variables]]></category>
            <dc:creator><![CDATA[Deepa Jarout]]></dc:creator>
            <pubDate>Thu, 11 Aug 2022 16:05:05 GMT</pubDate>
            <atom:updated>2022-08-11T16:20:08.140Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/967/1*62BRAVaX1xj5qJPzpf3_OQ.png" /><figcaption>Hoisting In JavaScript</figcaption></figure><p>In JavaScript, hoisting is a behavior where a function or variable can be used before declaration.</p><figure><img alt="hoisting" src="https://cdn-images-1.medium.com/max/826/1*R4_TL_QzdxM9Ijyd9mxaZQ.png" /><figcaption>hoisting</figcaption></figure><p>The output of the program as mentioned above is <strong>undefined</strong>, but it runs. The program as mentioned earlier acts in the following ways:</p><figure><img alt="hoisting" src="https://cdn-images-1.medium.com/max/823/1*g9j1iB7dslNou1mugZb4VQ.png" /></figure><p>Since the variable <strong>myName</strong> is just declared and has no value, it is given an <strong>undefined </strong>value.</p><p>Visit <a href="https://medium.com/@deepajarout/data-types-in-javascript-fd7cd14ad4a7"><strong><em>JavaScript Variables</em></strong></a> if you want to know more about variables.</p><blockquote><strong>The function and variable declarations are added to memory during the build phase, despite the fact that hoisting makes it appear as though the declaration has moved up in the programme hierarchy.</strong></blockquote><h3>Variable Hoisting</h3><p>When it comes to variables and constants, the keyword var is hoisted, but let and const do not permit hoisting.</p><figure><img alt="variable hoisting" src="https://cdn-images-1.medium.com/max/500/1*mMuDWMiUnikxo1PNihomCg.png" /><figcaption>variable hoisting</figcaption></figure><p>Variable b is used previously to being declared in the case above. The program works, and output 10 is shown. As it operates, the program:</p><figure><img alt="variable hoisting" src="https://cdn-images-1.medium.com/max/528/1*j8eLTcMpXV4Q0dBMrv49aA.png" /><figcaption>variable hoisting</figcaption></figure><p>However, initializations are not hoisted in JavaScript.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/571/1*ZqDHK1VgfhZa_RRuytVnBg.png" /><figcaption>hoisting</figcaption></figure><p>The above program behaves as</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/627/1*1JQEUNK1Z-kBV2mAe4IR2A.png" /></figure><p>In the build stage, only the declaration is copied to memory. As a result of the variable being printed without initialization, its value is undefined.</p><p>f a variable is used with the let, const keyword, that variable is not hoisted. For example,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IoEy0MBlXE_ym_AM4YnD_Q.png" /></figure><h3>Function Hoisting</h3><p>A function can be called before declaring it. For example,</p><figure><img alt="function hoisting" src="https://cdn-images-1.medium.com/max/691/1*W4HKppKPS3m6D4qn517kQA.png" /><figcaption>function hoisting</figcaption></figure><p>The function <strong>sayHi</strong> is called before it is declared in the previous code, and the output is displayed. <strong>Hoisting</strong> is to cause for this.</p><p>However, because only declarations are hoisted, an error happens when a function is used as an expression. the following;</p><figure><img alt="function expression with let" src="https://cdn-images-1.medium.com/max/1024/1*J0-xk0Ywh_hF-1eiRfHrNA.png" /><figcaption>function expression with let</figcaption></figure><figure><img alt="function expression with var" src="https://cdn-images-1.medium.com/max/1024/1*WiI1igaZ6eHCTckxbsa68Q.png" /><figcaption>function expression with var</figcaption></figure><h3><strong>Conclusion</strong></h3><p>Hoisting in JavaScript comes with a number of restrictions, so it’s usually advised to use strict mode or declare all your variables at the beginning of the file to prevent misunderstanding.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=63612140da87" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Event Capturing & Event Bubbling: Basic Javascript Concepts]]></title>
            <link>https://deepajarout.medium.com/event-capturing-event-bubbling-basic-javascript-concepts-874d4c73f52f?source=rss-fe20e98832dc------2</link>
            <guid isPermaLink="false">https://medium.com/p/874d4c73f52f</guid>
            <category><![CDATA[variables]]></category>
            <category><![CDATA[events]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[concerts]]></category>
            <category><![CDATA[functional-programming]]></category>
            <dc:creator><![CDATA[Deepa Jarout]]></dc:creator>
            <pubDate>Tue, 19 Jul 2022 17:26:07 GMT</pubDate>
            <atom:updated>2022-07-20T02:01:30.971Z</atom:updated>
            <content:encoded><![CDATA[<h3>Event Capturing &amp; Event Bubbling: Basic JavaScript Concepts</h3><p>Two of JavaScript’s most intriguing ideas are event bubbling and event capturing. Before we get into these fascinating ideas, let’s first discuss:</p><h4>What is an Event listener?</h4><p>A function that waits for an event to happen is an event listener. Any event, such as a mouse click, the submission of a form, the pressing of keyboard keys, etc., can count as that event.</p><figure><img alt="The syntax of Event Listener by deepajarout" src="https://cdn-images-1.medium.com/max/1024/1*5GL554Pbl37GPQcbZ5l6vg.png" /><figcaption>syntax of event listener by deepajarout</figcaption></figure><p>The propagation of events is referred to in JavaScript as “Event Flow.” The sequence or order in which events are delivered to a particular web page is known as the event flow.</p><p>The following factors affect how an event flows.</p><p>1)- Event Bubbling<br>2)- Event Capturing</p><h4>Event Bubbling —</h4><p>When two items are nested inside of one another, and both of them have registered a listener for the same event. The sequence in which the event handlers are called is known as “<strong>event bubbling</strong>” (a click, for example). When an event is bubbling, the innermost element initially records and manages it before propagating to the outer components.</p><figure><img alt="Event Bubbling" src="https://cdn-images-1.medium.com/max/830/1*PWuQwqwWp-W8NkxkahoGXg.png" /><figcaption>Event Bubbling By deepajarout</figcaption></figure><p>The event handler of element2 fires first, and the event handler of element1 fires last.</p><figure><img alt="example for Event Bubbling by deepajarout" src="https://cdn-images-1.medium.com/max/1024/1*QruYKyjagA1q2_LMfcWSdA.png" /><figcaption>example for Event Bubbling by deepajarout</figcaption></figure><h4>Event Capturing-</h4><p>When two items are nested inside of one another and both have registered a listener for the same event, the order in which the event handlers are invoked is known as <strong>event capturing</strong> (a click, for example). When an event is captured, the outermost element first records it before propagating it to the inner components.</p><figure><img alt="event capturing by deepajarout" src="https://cdn-images-1.medium.com/max/857/1*FX331sXTZ5tHRENe8Mc7ng.png" /><figcaption>Event Capturing By deepajarout</figcaption></figure><p>The event handler of element1 fires first, and the event handler of element2 fires last.</p><figure><img alt="example for event capturing by deepajarout" src="https://cdn-images-1.medium.com/max/1024/1*pIedpvxdVTDjoq-1PYagMg.png" /><figcaption>example for event capturing by deepajarout</figcaption></figure><h4>How can event capturing and event bubbling be stopped?</h4><p>When we add an event listener to an element, an event object that automatically defines itself is created. StopPropagation(), a function on this object ‘e’, aids in stopping this unpleasant behaviour.</p><figure><img alt="stopPropagation() by deepajarout" src="https://cdn-images-1.medium.com/max/1024/1*u74Vw2ScP7qhR2TvC8wFYw.png" /><figcaption>stopPropagation() by deepajarout</figcaption></figure><h4>Notes-</h4><ul><li>Event bubbling will occur by default if we do not specify a third option in <strong>addEventListener()</strong>.</li><li>When an element and all of its ancestors have the same event listener (in this case, the “click” event) attached with them, then event bubbling and event capturing take place.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=874d4c73f52f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>