<?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 Jagan Chinnamuniraj on Medium]]></title>
        <description><![CDATA[Stories by Jagan Chinnamuniraj on Medium]]></description>
        <link>https://medium.com/@jagancsmj?source=rss-770858933622------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*xg8pGmEShU7j_wsUDvKULA.jpeg</url>
            <title>Stories by Jagan Chinnamuniraj on Medium</title>
            <link>https://medium.com/@jagancsmj?source=rss-770858933622------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 16:12:29 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jagancsmj/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[var, let and const explained!]]></title>
            <link>https://medium.com/@jagancsmj/var-let-and-const-explained-8fbfd7f5a541?source=rss-770858933622------2</link>
            <guid isPermaLink="false">https://medium.com/p/8fbfd7f5a541</guid>
            <category><![CDATA[variables]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[code]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[javascript-tips]]></category>
            <dc:creator><![CDATA[Jagan Chinnamuniraj]]></dc:creator>
            <pubDate>Thu, 08 Dec 2022 11:39:57 GMT</pubDate>
            <atom:updated>2022-12-08T11:39:57.622Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B_zqaIfJ3PxvPxFb4B5j5g.jpeg" /></figure><p>JavaScript has three keywords for declaring variables: var, let, and const.</p><p>Var: The var keyword is used to declare a variable that can be reassigned a new value later in the code. For example:</p><p>var x = 5; x = 10; // valid</p><p>Var is the traditional way of declaring variables in JavaScript and is supported in all versions of the language. However, it has some drawbacks, such as being able to redeclare variables with the same name in the same scope, which can cause errors and confusion.</p><p>Let: The let keyword is used to declare a variable that can be reassigned a new value later in the code, but cannot be redeclared in the same scope. For example:</p><p>let x = 5; x = 10; // valid let x = 15; // invalid, cannot redeclare x in the same scope</p><p>Let was introduced in ES6 (ECMAScript 6) as a replacement for var, and is considered a more modern and safer way of declaring variables in JavaScript.</p><p>Const: The const keyword is used to declare a constant value that cannot be reassigned or redeclared. For example:</p><p>const x = 5; x = 10; // invalid, cannot reassign a const value const x = 15; // invalid, cannot redeclare a const value</p><p>Const was also introduced in ES6 as a way to create variables that cannot be changed, and is typically used for values that should remain constant throughout the program, such as configuration settings or mathematical constants.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8fbfd7f5a541" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Everything You Should Know About JavaScript RegExp]]></title>
            <link>https://medium.com/@jagancsmj/everything-you-should-know-about-javascript-regexp-25570f37ede5?source=rss-770858933622------2</link>
            <guid isPermaLink="false">https://medium.com/p/25570f37ede5</guid>
            <category><![CDATA[programming-languages]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[javascript-development]]></category>
            <category><![CDATA[code]]></category>
            <category><![CDATA[regex]]></category>
            <dc:creator><![CDATA[Jagan Chinnamuniraj]]></dc:creator>
            <pubDate>Thu, 08 Dec 2022 11:33:31 GMT</pubDate>
            <atom:updated>2022-12-08T11:33:31.900Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JYoZKH14hjIzXE2TlqPvXA.jpeg" /></figure><p>Regular expressions are a way to describe patterns in strings using a specific syntax. They are commonly used in JavaScript for pattern matching, searching, and replacing text.</p><p>Here are some examples of common regular expressions in JavaScript:</p><ol><li>Matching a specific word:</li></ol><p>To match a specific word, you can use the \b character, which stands for “word boundary”. For example, to match the word “cat” in the string “The cat is playing”, you can use the following regular expression:</p><p>/\bcat\b/</p><p>This will match the word “cat” but not the words “category” or “cathedral”, which contain “cat” but are not an exact match.</p><ol><li>Matching a specific number:</li></ol><p>To match a specific number, you can use the \d character, which stands for “digit”. For example, to match the number 123 in the string “My phone number is 123–456–7890”, you can use the following regular expression:</p><p>/\d{3}/</p><p>This will match any three-digit number in the string, but not four-digit numbers or non-numeric characters.</p><ol><li>Matching a specific pattern:</li></ol><p>To match a specific pattern, you can use a combination of different regular expression characters. For example, to match a US phone number in the format (123) 456–7890, you can use the following regular expression:</p><p>/(\d{3}) \d{3}-\d{4}/</p><p>This will match any phone number in the specified format, but not other formats or non-numeric characters.</p><ol><li>Replacing text:</li></ol><p>To replace text in a string, you can use the replace() method in JavaScript, along with a regular expression. For example, to replace all instances of the word “cat” with the word “dog” in the string “The cat is playing”, you can use the following code:</p><p>var str = “The cat is playing”; str = str.replace(/\bcat\b/g, “dog”);</p><p>This will update the string to be “The dog is playing”. The “g” character in the regular expression stands for “global”, which means that all instances of the pattern will be replaced, not just the first one.</p><p>Here is a quick reference guide for common regular expressions in JavaScript:</p><ul><li>\d: matches any digit (0–9)</li><li>\D: matches any non-digit character</li><li>\w: matches any word character (a-z, A-Z, 0–9, _)</li><li>\W: matches any non-word character</li><li>\s: matches any whitespace character (space, tab, newline)</li><li>\S: matches any non-whitespace character</li><li>\b: matches a word boundary (beginning or end of a word)</li><li>\B: matches a non-word boundary</li><li>[xyz]: matches any character within the specified set (e.g. [abc] matches “a”, “b”, or “c”)</li><li>.: matches any character except a newline</li><li>(xyz): creates a capture group for matching the specified pattern</li><li>\1, \2, \3, etc.: matches the text in the corresponding capture group</li><li>*: matches 0 or more occurrences of the preceding character or group</li><li>+: matches 1 or more occurrences of the preceding character or group</li><li>?: matches 0 or 1 occurrence of the preceding character or group</li><li>{n}: matches exactly n occurrences of the preceding character or group</li><li>{n,}: matches n or more occurrences of the preceding character or group</li><li>{n,m}: matches at least n and at most m occurrences of the preceding character or group</li><li>|: matches either the preceding or the following character or group</li><li>^: matches the beginning of the input string</li><li>$: matches the end of the input string</li><li>/xyz/: creates a regular expression object for matching the specified pattern</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=25570f37ede5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introduction to JavaScript]]></title>
            <link>https://medium.com/@jagancsmj/introduction-to-javascript-a900219ca298?source=rss-770858933622------2</link>
            <guid isPermaLink="false">https://medium.com/p/a900219ca298</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[programming-languages]]></category>
            <category><![CDATA[javascript-development]]></category>
            <dc:creator><![CDATA[Jagan Chinnamuniraj]]></dc:creator>
            <pubDate>Mon, 05 Dec 2022 11:38:20 GMT</pubDate>
            <atom:updated>2022-12-05T11:38:20.116Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QAhkF1n92DeGEF53IAvulQ.jpeg" /></figure><p>JavaScript is a programming language that is commonly used to add interactive features to websites. It is an implementation of the ECMAScript specification, and it is one of the core technologies used in web development, along with HTML and CSS.</p><p>JavaScript is a client-side language, which means that it runs in the user’s web browser, rather than on the server. This allows JavaScript to provide a wide range of dynamic, interactive features that can make websites more engaging and user-friendly.</p><p>Some examples of the types of things that can be done with JavaScript include:</p><ul><li>Responding to user input and events, such as mouse clicks or key presses.</li><li>Creating animations and visual effects on web pages.</li><li>Validating user input in forms and providing immediate feedback.</li><li>Loading and displaying new content on a page without requiring a page refresh.</li><li>Storing and using data on the client-side, such as user preferences or settings.</li></ul><p>JavaScript is a versatile language that can be used to create a wide range of applications and features for the web. It is an essential part of modern web development, and it is a skill that is in high demand among employers in the tech industry.</p><p>To use JavaScript in a web page, you can add the &lt;script&gt; element to the HTML code. This element can either contain the JavaScript code directly, or it can have a src attribute that specifies the location of an external JavaScript file. Here&#39;s an example of how to add a &lt;script&gt; element to an HTML page:</p><pre>&lt;!DOCTYPE html&gt;<br>&lt;html&gt;<br>&lt;head&gt;<br>    &lt;title&gt;My Page&lt;/title&gt;<br>&lt;/head&gt;<br>&lt;body&gt;<br>    &lt;h1&gt;Welcome to My Page&lt;/h1&gt;<br><br>    &lt;script&gt;<br>        // JavaScript code goes here<br>    &lt;/script&gt;<br>&lt;/body&gt;<br>&lt;/html&gt;</pre><p>In this example, the &lt;script&gt; element is added to the &lt;body&gt; of the page, and it contains some JavaScript code. The code inside the &lt;script&gt; element will be executed when the page loads.</p><p>In JavaScript, you can use variables to store values and data. Variables are declared using the var keyword, followed by the variable name and an optional assignment operator and value. For example:</p><pre>var x = 10;</pre><p>This code declares a variable x and assigns it the value 10. You can use the = operator to assign a new value to a variable, and you can use the + operator to concatenate strings. For example:</p><pre>x = 20;<br>var message = &quot;The value of x is &quot; + x;</pre><p>This code assigns a new value of 20 to the x variable, and it declares a new variable message that contains a string concatenated with the value of x.</p><p>In JavaScript, you can use functions to group together related code and to make your code more modular and reusable. Functions are declared using the function keyword, followed by the function name, a list of parameters, and the code to be executed. For example:</p><pre>function greet(name) {<br>    console.log(&quot;Hello, &quot; + name + &quot;!&quot;);<br>}<br><br>greet(&quot;John&quot;); // Output: &quot;Hello, John!&quot;</pre><p>In this example, the greet function is defined to take a single parameter, name, and it logs a greeting message to the console using the value of name. The greet function is then called with the argument &quot;John&quot;, which causes it to log the message &quot;Hello, John!&quot;.</p><p>Overall, these are just a few of the basic concepts of JavaScript. There is much more to learn about this powerful language, and it is an essential skill for anyone interested in web development.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a900219ca298" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[JavaScript Data Types]]></title>
            <link>https://medium.com/@jagancsmj/devejavascript-data-types-fb8390a26e43?source=rss-770858933622------2</link>
            <guid isPermaLink="false">https://medium.com/p/fb8390a26e43</guid>
            <category><![CDATA[javascript-tips]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[javascript-development]]></category>
            <category><![CDATA[datatypes-in-javascript]]></category>
            <dc:creator><![CDATA[Jagan Chinnamuniraj]]></dc:creator>
            <pubDate>Mon, 05 Dec 2022 08:08:12 GMT</pubDate>
            <atom:updated>2022-12-05T08:08:25.378Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_TF41GE3B9jE_O9qKeqzdw.jpeg" /></figure><p>JavaScript has a number of different data types that can be used to store and manipulate different kinds of information. These data types include:</p><ul><li>number: Any numeric value, including integers and floating-point numbers.</li><li>string: A sequence of characters used to represent text.</li><li>boolean: A value that is either true or false.</li><li>null: A value that represents the absence of a value.</li><li>undefined: A value that indicates that a variable has not been assigned a value.</li><li>object: A collection of key-value pairs that can store any other data type, including other objects.</li><li>symbol: A unique identifier that is used to represent a value that cannot be changed or overwritten.</li></ul><p>In addition to these data types, JavaScript also has a number of special values that are considered to be “falsy” or “truthy.” Falsy values include null, undefined, 0, and an empty string, while truthy values include any other value that is not falsy.</p><p>You can check the data type of a value in JavaScript using the typeof operator, which returns a string indicating the data type of the value. For example:</p><pre>console.log(typeof 123); // &quot;number&quot;<br>console.log(typeof &quot;Hello, world!&quot;); // &quot;string&quot;<br>console.log(typeof true); // &quot;boolean&quot;<br>console.log(typeof {}); // &quot;object&quot;</pre><p>JavaScript is a dynamically-typed language, which means that you do not have to specify the data type of a variable when you declare it. The data type of a variable can change at any time, and the same variable can be used to store values of different data types.</p><p>For example, you can declare a variable x and assign it a number, then later reassign it to a string or any other data type:</p><pre>let x = 123;<br>console.log(typeof x); // &quot;number&quot;<br><br>x = &quot;Hello, world!&quot;;<br>console.log(typeof x); // &quot;string&quot;</pre><p>Overall, understanding data types is important for working with JavaScript and for creating programs that can manipulate and store different kinds of information.</p><p>Overall, understanding data types is important for working with JavaScript and for creating programs that can manipulate and store different kinds of information.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fb8390a26e43" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[JavaScript Promises Explained]]></title>
            <link>https://medium.com/@jagancsmj/javascript-promises-explained-6a5d6a30d6df?source=rss-770858933622------2</link>
            <guid isPermaLink="false">https://medium.com/p/6a5d6a30d6df</guid>
            <category><![CDATA[javascript-tips]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[promises]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[javascript-development]]></category>
            <dc:creator><![CDATA[Jagan Chinnamuniraj]]></dc:creator>
            <pubDate>Mon, 05 Dec 2022 07:55:07 GMT</pubDate>
            <atom:updated>2022-12-05T07:55:07.914Z</atom:updated>
            <content:encoded><![CDATA[<p>JavaScript promises are a language feature that makes it easier to work with asynchronous code. Promises provide a simpler interface for handling asynchronous operations than using callbacks, and they can be used with most existing code that uses callbacks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*psAjSrWlIdEqTUbfgSgMoQ.jpeg" /><figcaption>Promises in JavaScript</figcaption></figure><p>Promises are a way of representing the result of an asynchronous operation. Instead of immediately returning a value like a normal function, a promise will return a “pending” promise that eventually gets resolved with a value or gets rejected with an error. This allows you to write asynchronous code that looks and behaves like synchronous code, making it easier to read and write.</p><p>Here’s an example of how to use a promise to handle an asynchronous operation:</p><pre>function getDataFromServer() {<br>    return new Promise((resolve, reject) =&gt; {<br>        // Make an Ajax request to the server<br>        let xhr = new XMLHttpRequest();<br>        xhr.open(&#39;GET&#39;, &#39;/some/data&#39;);<br>        xhr.onload = () =&gt; {<br>            if (xhr.status === 200) {<br>                // If the request is successful, resolve the promise with the response data<br>                resolve(xhr.response);<br>            } else {<br>                // If the request is not successful, reject the promise with an error<br>                reject(new Error(xhr.statusText));<br>            }<br>        };<br>        xhr.onerror = () =&gt; {<br>            // If there is an error, reject the promise with an error<br>            reject(new Error(&#39;Network Error&#39;));<br>        };<br>        xhr.send();<br>    });<br>}<br><br>// Use the promise<br>getDataFromServer()<br>    .then(response =&gt; {<br>        // If the promise is resolved, do something with the data<br>        console.log(response);<br>    })<br>    .catch(error =&gt; {<br>        // If the promise is rejected, handle the error<br>        console.log(error);<br>    });</pre><p>In this example, the getDataFromServer function returns a new promise that makes an Ajax request to the server to fetch some data. If the request is successful, the promise is resolved with the response data. If there is an error, the promise is rejected with an error.</p><p>The then method is used to specify what should happen when the promise is resolved, and the catch method is used to specify what should happen when the promise is rejected. In this case, the then method is used to log the response data, and the catch method is used to log any errors.</p><p>Overall, promises make it easier to work with asynchronous code by providing a simple, unified interface for handling the results of asynchronous operations.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6a5d6a30d6df" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[அந்த கண்கள்]]></title>
            <link>https://medium.com/@jagancsmj/%E0%AE%85%E0%AE%A8%E0%AF%8D%E0%AE%A4-%E0%AE%95%E0%AE%A3%E0%AF%8D%E0%AE%95%E0%AE%B3%E0%AF%8D-ee2c26bd183c?source=rss-770858933622------2</link>
            <guid isPermaLink="false">https://medium.com/p/ee2c26bd183c</guid>
            <category><![CDATA[tamil-short-story]]></category>
            <category><![CDATA[short-story]]></category>
            <category><![CDATA[tamil]]></category>
            <category><![CDATA[stories]]></category>
            <dc:creator><![CDATA[Jagan Chinnamuniraj]]></dc:creator>
            <pubDate>Mon, 29 Oct 2018 02:34:31 GMT</pubDate>
            <atom:updated>2018-10-29T02:34:31.413Z</atom:updated>
            <content:encoded><![CDATA[<p>அந்த கண்கள்</p><p>ஆயுத பூஜை முடிந்த ஞாயிறு மாலை அது, ஏழரை மணியை கடந்தும் பரபரத்து கொண்டிருந்தது ஓசூர் பேருந்து நிலையம். நீண்ட விடுமுறையின் தாக்கம் இருப்பதால் எப்போதும் காலையில் செல்பவன் இன்று ஏனோ மாலையே புறப்பட்டான்.</p><p>பெங்களூரூ பேருந்துகள் புறப்படும் பகுதியில் போர்க்களத்தில் தோற்றுக்கொண்டிருக்கும். படை தங்கள் நாட்டு கப்பல்களை கண்டால் எப்படி ஒடி போய் இல்லாத இடத்தில் ஏற முயலுமோ அதை போல இங்கே ஏற்கனவே படியில் தொங்கிக் கொண்டிருக்கும் கூட்டத்தின் ஊடே இடம் பிடிக்க முயன்று கொண்டிருந்தனர்.</p><p>இருபது நிமிடங்கள் அங்கும் இங்கும் நடந்தான், ஒரு பேருந்தில் கூட நிற்கும் அளவிற்கும் இடமில்லை. அதிருப்தியில் என்ன செய்வதென்று யோசித்து கொண்டிருக்க சற்று தூரத்தில் ஒரு முகம், கவலை கொண்ட முகம் கூட இவ்வளவு அழகா என்று பிரமித்து நின்றான். ஒளியில்லா இரவிலும் ஜொலிக்கும் முகம் அவளது, முழு நிலவு நாளில் நிலவிடமே திருடப்பட்டவளோ என்னவோ! நிலவில்லா நாளில் இவள் முகத்தை வைத்தால் அன்றும் முழு நிலவே. ஓராயியரம் வாட்ஸ் விளக்கு கொண்டு வந்தாலும் அவள் ஒற்றை கண்ணை விட ஒளி தருமா?</p><p>அவள் போகும் இடமெல்லாம் போனான், அவள் பார்க்கும் பேருந்தெல்லாம் பார்த்தான், அவளை அறியாமல் நிழலாய் பின்னால் நின்றான். ஒரு வழியாக தனியார் பேருந்து ஒன்றில் ஏறினால், விடுவானேன் பின்னாலே இவனும் ஏறினான். ஓட்டுனருக்கு பக்கவாட்டில் கண்ணாடியை ஒட்டி அமர்ந்தால், ஒரு இரண்டடி தள்ளி அவனும் நின்றான். இறங்கும் வரை இது போதும் என நினைத்து முடிப்பதற்குள், வில்லனாக வந்த நடத்துனர் பெண்களுக்கு இடம் தர சொல்லி அவனை பின்னொக்கி நகர்த்தினான், படியை தாண்டி நகர்ந்தான் அவள் பார்வையில் இருந்து மறைந்தால்.</p><p>ஏமாற்றத்துடனே துவங்கியது பயணம், ஒரு சிறிது நேரம் பின் எதெச்சையாக படியின் நேரே இருந்த கண்ணாடி பார்த்தான். அவள் கண்கள் தான் அது, எப்படி மறந்திருப்பான். நான்கைந்து நாள் பசியில் கிடந்தவனுக்கு கிடைத்த விருந்து மாதிரி இருந்தது அவனுக்கு. என்ன நடந்தாலும் அவளிடம் பேசி விடுவது என்ற முடிவில் இருந்தான், பேருந்தில் ராஜா பாடல்கள் ஒலிக்க அவள் கண்கள். கொடுத்த அந்த அசுர போதையும் சேர்த்து அவனுக்கு ஒரு புது தைரியத்தை கொடுத்திருந்த்தது.</p><p>இறங்க வேண்டிய எலக்ட்ரானிக் சிட்டி வந்தது, இருப்பினும் அவள் இறங்கவில்லையே. அடுத்து எப்படியும் மடிவாளா தான், அவள் இறங்குவாள், அவளிடம் பேசியே ஆக வேண்டும் என்ற முடிவில் இருந்தான். திறன்பேசியில் வந்த ஒரு குறுந்தகவலுக்கு பதிலலித்து கொண்டிருந்தான், பேருந்து நின்றிருந்தது சுதாரித்து பார்ப்பதற்குள் சாலையில் நடந்து கொண்டிருந்தால் அவள், புறப்பட்டு விட்ட பேருந்தில் ஒன்றும் செய்ய முடியாதவனாய் அந்த கண்களை நினைத்து அசைப் போட்டுக்கொண்டு சென்றான் அவன்.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ee2c26bd183c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>