<?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 Kunvar singh on Medium]]></title>
        <description><![CDATA[Stories by Kunvar singh on Medium]]></description>
        <link>https://medium.com/@kunvar?source=rss-856d5ad659b4------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*HnQ0mDRL7qMTQEZjZ7k8HQ.jpeg</url>
            <title>Stories by Kunvar singh on Medium</title>
            <link>https://medium.com/@kunvar?source=rss-856d5ad659b4------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 20 Nov 2026 07:21:24 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kunvar/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[Top 10 AI Tools That Can Boost Your Productivity in 2026 in many areas.]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://kunvar.medium.com/top-10-ai-tools-that-can-boost-your-productivity-in-2026-in-many-areas-00da0bc26906?source=rss-856d5ad659b4------2"><img src="https://cdn-images-1.medium.com/max/1024/1*OiD1I1a62TfEOz14ccoL2A.png" width="1024"></a></p><p class="medium-feed-snippet">Artificial Intelligence is changing the way we work, learn, and create. From writing code to designing images and managing tasks, AI tools&#x2026;</p><p class="medium-feed-link"><a href="https://kunvar.medium.com/top-10-ai-tools-that-can-boost-your-productivity-in-2026-in-many-areas-00da0bc26906?source=rss-856d5ad659b4------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://kunvar.medium.com/top-10-ai-tools-that-can-boost-your-productivity-in-2026-in-many-areas-00da0bc26906?source=rss-856d5ad659b4------2</link>
            <guid isPermaLink="false">https://medium.com/p/00da0bc26906</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[company]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[generative-ai-tools]]></category>
            <dc:creator><![CDATA[Kunvar singh]]></dc:creator>
            <pubDate>Fri, 13 Mar 2026 18:51:00 GMT</pubDate>
            <atom:updated>2026-03-13T18:51:00.661Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[The “Just 2 Minutes” Call That Every IT Developer Knows ]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://kunvar.medium.com/the-just-2-minutes-call-that-every-it-developer-knows-60e5cbc6b607?source=rss-856d5ad659b4------2"><img src="https://cdn-images-1.medium.com/max/1024/1*CHO-qg0Vtb-78h8XayKtnQ.png" width="1024"></a></p><p class="medium-feed-snippet">It started like any normal morning in the IT world.</p><p class="medium-feed-link"><a href="https://kunvar.medium.com/the-just-2-minutes-call-that-every-it-developer-knows-60e5cbc6b607?source=rss-856d5ad659b4------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://kunvar.medium.com/the-just-2-minutes-call-that-every-it-developer-knows-60e5cbc6b607?source=rss-856d5ad659b4------2</link>
            <guid isPermaLink="false">https://medium.com/p/60e5cbc6b607</guid>
            <category><![CDATA[funny]]></category>
            <category><![CDATA[corporate-culture]]></category>
            <category><![CDATA[work]]></category>
            <category><![CDATA[company-culture]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Kunvar singh]]></dc:creator>
            <pubDate>Wed, 11 Mar 2026 17:47:01 GMT</pubDate>
            <atom:updated>2026-03-11T17:47:01.784Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[How I Made My First $100 on Medium ✍️]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-snippet">When I first started writing on Medium, I had zero followers, zero reads, and zero dollars.</p><p class="medium-feed-link"><a href="https://kunvar.medium.com/how-i-made-my-first-100-on-medium-%EF%B8%8F-e242d587fb08?source=rss-856d5ad659b4------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://kunvar.medium.com/how-i-made-my-first-100-on-medium-%EF%B8%8F-e242d587fb08?source=rss-856d5ad659b4------2</link>
            <guid isPermaLink="false">https://medium.com/p/e242d587fb08</guid>
            <category><![CDATA[short-story]]></category>
            <category><![CDATA[earnings]]></category>
            <category><![CDATA[writing]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Kunvar singh]]></dc:creator>
            <pubDate>Mon, 09 Mar 2026 17:41:46 GMT</pubDate>
            <atom:updated>2026-03-09T17:41:46.994Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Common IT Chat Terms Every Developer Should Know in Daily Life.]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://kunvar.medium.com/common-it-chat-terms-every-developer-should-know-b63ebdd74164?source=rss-856d5ad659b4------2"><img src="https://cdn-images-1.medium.com/max/1536/1*mmr-mHiOhassw1vR5FnN9Q.png" width="1536"></a></p><p class="medium-feed-snippet">When someone starts their journey in software development, one common challenge is understanding the short forms and abbreviations used in&#x2026;</p><p class="medium-feed-link"><a href="https://kunvar.medium.com/common-it-chat-terms-every-developer-should-know-b63ebdd74164?source=rss-856d5ad659b4------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://kunvar.medium.com/common-it-chat-terms-every-developer-should-know-b63ebdd74164?source=rss-856d5ad659b4------2</link>
            <guid isPermaLink="false">https://medium.com/p/b63ebdd74164</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[work]]></category>
            <category><![CDATA[developer]]></category>
            <category><![CDATA[company]]></category>
            <category><![CDATA[coding]]></category>
            <dc:creator><![CDATA[Kunvar singh]]></dc:creator>
            <pubDate>Sat, 07 Mar 2026 03:27:23 GMT</pubDate>
            <atom:updated>2026-03-07T03:35:14.603Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[ Optimistic UI in React 19 — Making Apps Feel Instant with useOptimistic]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-snippet">Modern users expect applications to feel instant. But in real applications, most actions involve API calls &#x2014; and APIs take time.</p><p class="medium-feed-link"><a href="https://kunvar.medium.com/optimistic-ui-in-react-19-making-apps-feel-instant-with-useoptimistic-54f82705427c?source=rss-856d5ad659b4------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://kunvar.medium.com/optimistic-ui-in-react-19-making-apps-feel-instant-with-useoptimistic-54f82705427c?source=rss-856d5ad659b4------2</link>
            <guid isPermaLink="false">https://medium.com/p/54f82705427c</guid>
            <category><![CDATA[user-experience]]></category>
            <category><![CDATA[react-19]]></category>
            <category><![CDATA[engineer]]></category>
            <category><![CDATA[enhancement]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Kunvar singh]]></dc:creator>
            <pubDate>Sat, 14 Feb 2026 10:06:01 GMT</pubDate>
            <atom:updated>2026-02-14T10:06:01.482Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Let’s Understand Function Currying in JavaScript]]></title>
            <link>https://kunvar.medium.com/lets-understand-function-currying-in-javascript-6e39ffa3c172?source=rss-856d5ad659b4------2</link>
            <guid isPermaLink="false">https://medium.com/p/6e39ffa3c172</guid>
            <category><![CDATA[function-currying]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[js]]></category>
            <category><![CDATA[interview]]></category>
            <dc:creator><![CDATA[Kunvar singh]]></dc:creator>
            <pubDate>Sat, 04 Nov 2023 05:02:42 GMT</pubDate>
            <atom:updated>2023-11-04T05:07:53.626Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello, Audience!</p><p>I hope you are doing well. Today, we will dive into a common and popular topic in JavaScript: function currying. Sometimes, when we see the syntax multiply(2)(3), we might wonder what it&#39;s for.</p><p>wait wait wait……. I know you are hungry, let’s finish the article first and have a good meal. <br>Of course, no egg curry or chicken curry involved! Here’s the continuation of the article with <strong>FUNCTION CURRYING</strong></p><figure><img alt="function currying in JS" src="https://cdn-images-1.medium.com/max/1024/1*8nz3lZtiMuuNY67KNn_6aA.jpeg" /></figure><p>Let&#39;s explore<strong> two ways to solve this problem</strong>.<br>1. via <strong>using the bind method</strong> (for bind function <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_objects/Function/bind">click here</a>)<br>2. via <strong>using closure</strong> (for closure understanding <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Closures">click here</a>)</p><p><strong><em>NOTE : functions are the first class objects, which behaves like a object or function. you may call those OR you can store those as well.</em></strong></p><ol><li>Using the Bind Method</li></ol><pre>function multiply(x,y){<br> console.log(‘Multiply Is =’,x*y);<br>}<br>const multiplyByTwo = multiply.bind(this,7); <br>// we are creating the copy of the multiply method and creating method<br>multiplyByTwo(2); //14</pre><p><strong>Explanation:</strong> We start by creating a normal function called multiply, which takes two arguments, x and y, and prints the output inside the function. Then, we create a new function by making a copy of multiply using the bind method and passing the first argument. When we call multiplyByTwo, it multiplies 2 by 7, resulting in 14.</p><ol><li>Using Closure</li></ol><pre>`let multiply= (a)=&gt;{<br> return (b)=&gt;{<br> console.log(‘multiply is=’,a+b)<br> }<br>}<br>const mul= multiply(2)<br>mull(3) //6</pre><p><em>// second way to call the same function<br></em>`multiply(2)(3) //6</p><p><strong>Explanation:</strong> In this approach, we create the multiply function and return another function from it. The outer-level function&#39;s argument a remains accessible to the inner-level function due to the lexical scope environment.</p><h3>Popular Interview Question Asked in JavaScript Interviews</h3><p><strong>How would you solve calculateSum(1)(2)(3)(4)(); ???????????????????</strong></p><p><em>let calculateSum = (first)=&gt;{<br> return (second)=&gt;{<br> if(second) return calculateSum(first+second)<br> else return fi</em></p><p>`const sum = <strong>calculateSum(1)(2)(3)(4)();<br></strong>console.log(sum) // 10</p><p><strong>Explanation:</strong> In this example, calculateSum is the function name. It takes first as its first argument and returns a function with a second argument. This method is recursively called with an argument on each function call until it reaches a state where only method calls occur, and there are no more arguments. To handle this, we added an if block inside the second argument to check for undefined or null. This allows us to calculate the sum successfully.</p><h3>Thank You.</h3><p>do clapping 👏👏👏 below and inspire me to write more &amp; more.</p><p>In this fast-paced world of technology, your time and attention are highly valued. Thank you for joining us on this journey of exploration. We hope this article has been informative and inspiring. Stay curious, keep learning, and continue to explore the ever-evolving tech landscape.<br><a href="https://medium.com/@kunvar/top-practices-for-code-review-3af76048b8ec"><strong>click here to more reading.</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6e39ffa3c172" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Top practices for code review]]></title>
            <link>https://kunvar.medium.com/top-practices-for-code-review-3af76048b8ec?source=rss-856d5ad659b4------2</link>
            <guid isPermaLink="false">https://medium.com/p/3af76048b8ec</guid>
            <category><![CDATA[development]]></category>
            <category><![CDATA[developer]]></category>
            <category><![CDATA[best-practices]]></category>
            <category><![CDATA[code]]></category>
            <category><![CDATA[code-review]]></category>
            <dc:creator><![CDATA[Kunvar singh]]></dc:creator>
            <pubDate>Wed, 21 Sep 2022 06:28:52 GMT</pubDate>
            <atom:updated>2022-09-27T10:30:19.371Z</atom:updated>
            <content:encoded><![CDATA[<p><em>A very common problem for all the developers while reviewing the PR (pull request)/ MR(merge request)/CL (change list) is, when they start reviewing they neglect few important and necessary steps for reviewing due time shortage or due to other reasons. In this article I will explain simple and efficient techniques for quick code review.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HEyuDA6Y8gOkNaHMPoU_ew.png" /><figcaption>Code review</figcaption></figure><h3><strong>Key points for Reviewers :</strong></h3><p><em>following are the simple and easiest tricks for review the code.</em></p><p><em>a) Communicate Goals and Expectations.</em><br><em>b) Do not take more than 10–15 min to review.</em><br><em>c)</em> <em>Review fewer than 400 lines of code at a time.</em><br><em>d) Review in one shot, so it’s easiest for other to make a fix.</em><br><em>e) Give Feedback That Helps (Not Hurts).</em></p><h3><strong>Key points for Developers :</strong></h3><p><em>below are the few points which developer can remember while coding!!!</em></p><blockquote>i) Your Project should follow folder structure.<br>ii) File naming should be appropriated.<br>iii) Keep images and icons into separate folder structure.<br>iv) Variable naming should be readable and explained properly.<br>v) Add date and file usage at the top of the file, if newly created.<br>vi) Remove commented code, if not needed.<br>vii) Remove unused code(i.e functions/statement/variable etc).<br>viii) Insist for adding comments what function/statements is doing.<br>ix) Bigger function should be break down into smaller function for better readability.<br>x) While forking a branch to develop feature <strong>OR</strong> fixing a bug, make it by the name of ticketID.<br>xi) If possible keep your test cases attached with the feature.<br>xii) Git comments should be explained properly.<br>xiii) Add atomic git commits, if possible<br>xiv) Do not check-in any data related file, that’s take more space<br>xv) Do not add your credentials (i.e username, password, token etc.)</blockquote><h4><strong>SUGGESTIONS :</strong></h4><p>Keep your voting system enabled while reviewing. Basically it’s a motivation so that other feels confident and positive. for writing a better quality code.<br>I personally used below :</p><p><strong>Good to have 😃<br>+1 👍<br>+2 👊<br>+3</strong> ✌️</p><p><em>If you enjoyed reading this and learned something new, please don’t forget to leave a clap or two, or three… </em>👏👏👏<br> <strong>…HAPPY CODING…</strong></p><p><strong>visit here for related articles</strong> : <a href="https://kunvar.medium.com/asynchronous-code-testing-of-react-app-fe3cee5722e4">https://kunvar.medium.com/asynchronous-code-testing-of-react-app-fe3cee5722e4</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3af76048b8ec" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Asynchronous code testing of React-app]]></title>
            <link>https://kunvar.medium.com/asynchronous-code-testing-of-react-app-fe3cee5722e4?source=rss-856d5ad659b4------2</link>
            <guid isPermaLink="false">https://medium.com/p/fe3cee5722e4</guid>
            <category><![CDATA[promises]]></category>
            <category><![CDATA[rest-api]]></category>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[callback]]></category>
            <dc:creator><![CDATA[Kunvar singh]]></dc:creator>
            <pubDate>Sun, 01 Aug 2021 05:48:05 GMT</pubDate>
            <atom:updated>2021-08-01T05:48:05.175Z</atom:updated>
            <content:encoded><![CDATA[<p>Here I’ll guide to you guy’s, how to do test react-app asynchronous code. I’m hoping that you have an basic idea about how to write the basic test cases, if not then please have a look at my previous article <a href="https://kunvar.medium.com/testing-reactapp-with-jest-580b233d48fe">here</a>, that’s pretty much simple. If you guy’s are familiar about the asynchronous code execution. <br>There are several ways to achieve this as explained below :</p><p><strong>1. Promise : <br></strong>In this below example, I have made a simple function that return promise to us for finding the specific user in the given array.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RLTD557nkm8v0hrs0XG21g.png" /><figcaption>promise.js</figcaption></figure><p>Below is the test case for the above written promise based function :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VfmrkO-qD1QbfHgzWOk5KA.png" /><figcaption>promise.spec.js</figcaption></figure><p>Below is the expected output when you run “<strong><em>npm test — promise.spec.js”</em></strong> on your vs code terminal :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/819/1*cMuwk1ffh3CeVYUPsUoXmw.png" /><figcaption>expected output</figcaption></figure><p><strong>2. API Endpoint : <br></strong>Here we will make an simple axios api call to fetch some user data via open source/free api service. And will write test cases about the same.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_HdFClxvC3H99lGK9LC8rg.png" /><figcaption>api.js</figcaption></figure><p>below is the test cases for above async/await based fetchingUsers function:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*TAA5rnFgkUZ_ylq2byqaCQ.png" /><figcaption>api.spec.js</figcaption></figure><p>You can run the below commands on you terminal : <strong><em>“npm test — api.spec.js”</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1010/1*5LFmjH5RaEKCX5-ezJ77rg.png" /><figcaption>expected outcome</figcaption></figure><p><strong>3. CallBack : <br></strong>Here we have made a simple multiplication function, <strong>which takes 2 argument (i.e number and callback function)</strong>, once this will done their complete task then it will call the callback function (i.e cb).</p><pre>function callbackBasedFunc(number, cb) {<br>         cb(number * 2);<br>}</pre><p>Below is the test case for callback based test function : In this example we have to pass the <strong>done argument for the test block function, so that jest can be notified that once callback function API testing will be completed</strong>. And we have also made and one local function that will help us to send the same function as an argument to receive the callback data on it. Try to run the below code in the same way and you will get your expected outcome.</p><pre>describe(&quot;Async Code Test cases::&quot;, () =&gt; {<br>   test(“to check multiplication once callback finish:”, (done) =&gt; {<br>        function callback(data) {<br>                 expect(data).toEqual(4);<br>                 done();<br>        }<br>        callbackBasedFunc(2, callback);<br>   });<br>});</pre><p><em>If you enjoyed reading this article and learned something new, please don’t forget</em></p><p><em>to leave a clap or two, or three… </em>👏👏👏<br>THANK YOU.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fe3cee5722e4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Testing React-app with Jest]]></title>
            <link>https://kunvar.medium.com/testing-reactapp-with-jest-580b233d48fe?source=rss-856d5ad659b4------2</link>
            <guid isPermaLink="false">https://medium.com/p/580b233d48fe</guid>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[components]]></category>
            <category><![CDATA[jest]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[functional-programming]]></category>
            <dc:creator><![CDATA[Kunvar singh]]></dc:creator>
            <pubDate>Mon, 19 Jul 2021 11:50:47 GMT</pubDate>
            <atom:updated>2021-07-27T09:19:59.211Z</atom:updated>
            <content:encoded><![CDATA[<p>A bit tricky but most interesting things in the programming ie.Test Cases. This is the only parts which let you easily sleep while other’s are using your code. Your code can be bug free. so eagerly waiting to see how test cases can be written using jest.</p><p>Keep continue your reading…</p><p><strong>Jest : </strong>is a JavaScript test runner, that is, a JavaScript library for creating, <strong>running</strong>, and <strong>structuring tests</strong>. Jest is one of the testing framework and which is the default and easy choice of today’s developer.</p><p><strong>Jest Installation : </strong>NPM provides package for us called <strong>“jest”</strong>, you can easily install that by below command</p><pre><strong>npm i jest — save-dev</strong></pre><p><strong>Jest Configuration :</strong> It’s so simple, If you have created your project via creat-react-app, then open up “package.json” file and configure the script name as test as below.</p><pre><strong>{<br>“script” : {<br>     “test”:”react-scripts test — verbose”<br>  }<br>}</strong></pre><p><strong>Jest Directory structure and file name : </strong>A better approach is that, to make a <strong>“__test__” </strong>folder inside your project then you can create the test file inside the same. Other jest will also consider the <strong>.test.js</strong> OR <strong>.spec.js</strong> file inside your project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/359/1*3tKxkCwaMjSY0xgU_IDydg.png" /><figcaption>Directory structure</figcaption></figure><p><strong>Jest Method&#39;s which use widely :</strong></p><p><strong>1.afterAll :</strong> Runs a function after all the tests in this file have completed.<br><strong>2.afterEach :</strong> This is often useful if you want to clean up some temporary state that is created by each test.<br><strong>3.beforeAll :</strong> This is often useful if you want to set up some global state that will be used by many tests.<br><strong>4.describe :</strong> Creates a block that groups together several related tests.<br><strong>5.test :</strong> All you need in a test file is the test method which runs a test.<br><strong>6.expect :</strong> Need to you expect values should be match your expected outcomes.</p><h3><strong>***Let’s do some coding practices***</strong></h3><p>we are creating todo list here. And writing the test cases for the same here.</p><blockquote><strong>app.js</strong></blockquote><p>The changes we made here are those, made some dummy todo array and pass as a props to todo component.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/812/1*QccclJQZbC5noiS1EoAFQg.png" /><figcaption>app.js</figcaption></figure><blockquote><strong>todo.js</strong></blockquote><p>in this file we create a simple todo list which contains the title heading for non-completed todo items as h1 and strike heading text for those are completed items.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/842/1*X-uBxXDm80D65L2oQsFWMw.png" /><figcaption>todo.js</figcaption></figure><blockquote><strong>todo.test.js</strong></blockquote><p>In this file, we wrote 2 test cases, one is for checking the todo items which are completed and shown on UI and other is for non-completed todo items.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TwN6eMrCzOj5gj-H8n13Kw.png" /><figcaption>todo.test.js</figcaption></figure><p>Finally open your terminal, and shoot the below command for run the test cases, may this will take few seconds to start.<br><strong><em>npm run test</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9OKU-_bi_nTSCq3NgwIh9Q.png" /><figcaption>test case run successfully!</figcaption></figure><p><em>If you enjoyed reading this article and learned something new, please don’t forget</em></p><p><em>to leave a clap or two, or three… </em>👏👏👏<br>THANK YOU.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=580b233d48fe" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[To find thee first repeated letter in given string.]]></title>
            <link>https://kunvar.medium.com/to-find-thee-first-repeated-letter-in-given-string-384271a71d88?source=rss-856d5ad659b4------2</link>
            <guid isPermaLink="false">https://medium.com/p/384271a71d88</guid>
            <category><![CDATA[interview-questions]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[google]]></category>
            <category><![CDATA[javascript-development]]></category>
            <dc:creator><![CDATA[Kunvar singh]]></dc:creator>
            <pubDate>Fri, 15 Jan 2021 04:37:44 GMT</pubDate>
            <atom:updated>2021-01-15T04:41:32.786Z</atom:updated>
            <content:encoded><![CDATA[<p>Below is the code for to find the first letter repeated in the string.</p><pre>function findFirstRepeatLetter(str){<br>var letter = null<br>var obj = {}<br>for(var i=0;i&lt;str.length;i++){<br> if(obj.hasOwnProperty(str[i])){<br> letter = str[i]<br> return letter <br> }else{<br> obj[str[i]]=1<br> }<br>}<br>return letter<br>}</pre><p>Thank you!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=384271a71d88" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>