<?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 Nyazi Mohammed Julkhair Naine Khan on Medium]]></title>
        <description><![CDATA[Stories by Nyazi Mohammed Julkhair Naine Khan on Medium]]></description>
        <link>https://medium.com/@jul.khair0786?source=rss-b1897174d265------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*QC3xzKb84QGVDopj</url>
            <title>Stories by Nyazi Mohammed Julkhair Naine Khan on Medium</title>
            <link>https://medium.com/@jul.khair0786?source=rss-b1897174d265------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 17:26:08 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jul.khair0786/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[In-Depth Overview of Type Coercion in JavaScript]]></title>
            <link>https://medium.com/@jul.khair0786/in-depth-overview-of-type-coercion-in-javascript-f5a6364b3e9a?source=rss-b1897174d265------2</link>
            <guid isPermaLink="false">https://medium.com/p/f5a6364b3e9a</guid>
            <dc:creator><![CDATA[Nyazi Mohammed Julkhair Naine Khan]]></dc:creator>
            <pubDate>Tue, 22 Apr 2025 14:52:01 GMT</pubDate>
            <atom:updated>2025-04-22T14:52:28.731Z</atom:updated>
            <content:encoded><![CDATA[<p>As mentioned, JavaScript is a <strong>loosely-typed</strong> or <strong>dynamically-typed</strong> language, which means variables can hold values of any data type and can change types as needed. Type coercion refers to JavaScript automatically or explicitly converting a value from one data type to another.</p><p>Coercion can be <strong>implicit</strong> (automatically done by JavaScript) or <strong>explicit</strong> ( manually done by the developer). Let’s break down the implicit and explicit coercion processes with further technical detail, including special cases, edge behaviors, and common pitfalls(danger/risk).</p><ul><li><strong>Implicit Type Coercion</strong> :- Automatically done by JavaScript when it expects a certain type.</li><li><strong>Explicit Type Coercion :- </strong>When the developer manually converts a value from one type to another using built-in functions like String() , Number() , or Boolean() .</li></ul><p>Why Does Coercion Happen?</p><p>JavaScript is designed to be flexible and forgiving, especially when working with loosely-typed data. It performs type coercion to ensure operations can proceed without throwing errors, even if the data types involved don’t match perfectly.</p><p>As an example of type coercion in practice, consider the<a href="https://dorey.github.io/JavaScript-Equality-Table/"> JavaScript <strong>Comparison Table</strong></a>, which shows how the loose equality (==) operator behaves with different combinations of a and b types. This table can seem overwhelming because the == operator performs implicit type coercion in various ways, and it’s nearly impossible to memorize all the combinations. However, you don’t need to memorize every scenario—what you really need to understand are the underlying <strong>type coercion principles</strong> that govern how JavaScript handles these comparisons.</p><pre>true + false<br>12 / &quot;6&quot;<br>&quot;number&quot; + 15 + 3<br>15 + 3 + &quot;number&quot;<br>[1] &gt; null<br>&quot;foo&quot; + + &quot;bar&quot;<br>&#39;true&#39; == true<br>false == &#39;false&#39;<br>null == &#39;&#39;<br>!!&quot;false&quot; == !!&quot;true&quot;<br>[‘x’] == ‘x’<br>[] + null + 1<br>[1,2,3] == [1,2,3]<br>{}+[]+{}+[1]<br>!+[]+[]+![]<br>new Date(0) - 0<br>new Date(0) + 0</pre><h3>Understanding Type Coercion in JavaScript: Primitive vs. Non-Primitive Types</h3><h4>Primitive Types in JavaScript and Their Coercion Behavior</h4><h4>What Are Primitive Types?</h4><p>Primitive types are the most basic data types in JavaScript, and they include:</p><ul><li><strong>String</strong>:- Represents a sequence of characters.</li><li><strong>Number</strong>:- Represents numeric values, both integer and floating-point.</li><li><strong>Boolean</strong>:- Represents true or false.</li><li><strong>Null</strong>:- Represents the intentional absence of any object value.</li><li><strong>Undefined</strong>:- Represents a variable that has been declared but has not been assigned a value.</li><li><strong>Symbol</strong> (introduced in ES6):- A unique and immutable primitive value.</li><li><strong>BigInt</strong> (introduced in ES11):- Represents integers with arbitrary precision.</li></ul><h4>Coercion with Primitive Types</h4><p>Primitive types are usually quite straightforward when it comes to coercion. Let’s break down how JavaScript handles type coercion for each of them:</p><h4>1. String Coercion</h4><p>The most common operation involving strings is concatenation, especially when the + operator is used. If one of the operands is a string, the other operand is coerced into a string, and the result is <strong>string concatenation</strong>.</p><p><strong>Example:</strong></p><pre>console.log(&#39;Hello &#39; + &#39;World&#39;);  // &quot;Hello World&quot;<br>console.log(&#39;5&#39; + 2);             // &quot;52&quot; (number coerced to string)<br>console.log(true + &#39;abc&#39;);        // &quot;trueabc&quot; (boolean coerced to string)<br>console.log(&#39;5&#39; + true); // &quot;5true&quot; (boolean true coerced to string)<br>console.log(&#39;5&#39; + null); // &quot;5null&quot; (null coerced to string)</pre><p>When the + operator encounters a string, it automatically converts the other operand to a string. Even <strong>non-string types</strong> like numbers and booleans will be converted to their string representations.</p><h4>2. Number Coercion</h4><p>Numbers can be coerced from strings when performing arithmetic operations like addition (+), subtraction (-), multiplication (*), or division (/). JavaScript will try to convert the operand to a number to perform the operation.</p><p><strong>Example:</strong></p><pre>console.log(&#39;5&#39; - 2);    // 3  (string &#39;5&#39; coerced to number)<br>console.log(&#39;5&#39; * 3);    // 15 (string &#39;5&#39; coerced to number)<br>console.log(&#39;10&#39; / &#39;2&#39;); // 5  (both strings coerced to numbers)<br>console.log(true + 1);   // 2 (true coerced to 1)<br>console.log(&#39;hello&#39; * 2);// NaN (invalid number)<br>console.log(&#39;JK&#39; - 2);   // NaN</pre><p>However, if the string does not represent a valid number, JavaScript will return NaN (Not a Number):</p><h4>3. Boolean Coercion</h4><p>When used in <strong>logical expressions</strong>, JavaScript will automatically coerce values into booleans. This is crucial for understanding <strong>truthy</strong> and <strong>falsy</strong> values.</p><ul><li><strong>Falsy values</strong> in JavaScript: false, 0, -0, null, undefined, NaN, and &quot;&quot; (empty string).</li><li><strong>Truthy values</strong>: All other values, including non-empty strings, non-zero numbers, and objects.</li></ul><p><strong>Example:</strong></p><pre>console.log(Boolean(0));        // false (0 is falsy)<br>console.log(Boolean(&#39;hello&#39;));  // true  (non-empty string is truthy)<br>console.log(Boolean(null));     // false (null is falsy)<br>console.log(Boolean(&#39;&#39;));        // false (empty string is falsy)<br>console.log(Boolean(1));         // true  (1 is truthy)</pre><ul><li><strong>Falsy values</strong>: false, 0, NaN, &quot;&quot; (empty string), null, and undefined are considered falsy.</li><li><strong>Truthy values</strong>: Everything else is truthy (non-zero numbers, non-empty strings, objects, etc.).</li></ul><h4>4. Null and Undefined Coercion</h4><p>null and undefined are unique in JavaScript&#39;s coercion system. Both are considered <strong>falsy</strong> values, but they behave differently, especially when compared.</p><ul><li><strong>null == undefined</strong> is true because JavaScript treats both as the absence of a value.</li><li><strong>null === undefined</strong> is false because they are of different types.</li></ul><p><strong>Example:</strong></p><pre>console.log(null == undefined);  // true<br>console.log(null === undefined); // false<br>console.log(null + 1);           // 1 (null coerced to 0)<br>console.log(undefined + 1);      // NaN (undefined coerced to NaN)</pre><ul><li><strong>Null</strong> is considered a <strong>falsy</strong> value.</li><li><strong>Undefined</strong> is also considered a <strong>falsy</strong> value but behaves differently in some cases (especially in comparison).</li></ul><h4>5. Symbol and BigInt Coercion</h4><ul><li><strong>Symbols</strong>: Symbols are <strong>unique</strong> values and cannot be coerced to any other type (except with explicit coercion). Attempting to coerce a symbol to a string or a number results in a TypeError.</li></ul><p><strong>Example:</strong></p><pre>let sym = Symbol(&#39;id&#39;);<br>// console.log(sym + &#39;&#39;);  // TypeError: Cannot convert a Symbol value to a string</pre><p><strong>BigInt</strong>: Similarly, BigInt values represent large integers and cannot be implicitly coerced into a number (they are distinct types). Trying to mix BigInt with regular numbers will also throw a TypeError.</p><p><strong>Example:</strong></p><pre>let big = BigInt(10);<br>// console.log(big + 5); // TypeError: Cannot mix BigInt and other types</pre><h4>Non-Primitive Types in JavaScript and Their Coercion Behavior</h4><h4>What Are Non-Primitive Types?</h4><p>Non-primitive types are more complex and can hold collections of values or represent more sophisticated data structures. These include:</p><ul><li><strong>Objects</strong>: Key-value pairs, used to represent more complex data.</li><li><strong>Arrays</strong>: Special types of objects that hold indexed collections of values.</li><li><strong>Functions</strong>: Special types of objects that are callable.</li></ul><p><strong>Coercion with Non-Primitive Types</strong></p><p>Since non-primitive types are <strong>objects</strong>, they are <strong>reference types</strong> and behave differently from primitive types when coerced.</p><h4>1. Coercion with Objects</h4><p>When objects are coerced to primitive values (for example, when added to a string or used in mathematical operations), JavaScript will attempt to call the object’s toString() or valueOf() method. If these methods aren&#39;t explicitly defined, it defaults to the toString() method, which typically returns &quot;[object Object]&quot;.</p><p><strong>Example:</strong></p><pre>let obj = { name: &#39;Julkhair&#39; };<br>console.log(obj + &#39;&#39;); // &quot;[object Object]&quot; (default toString() result)<br>console.log(obj + 5);  // &quot;[object Object]5&quot; (concatenation with number)</pre><ul><li><strong>Coercion to Primitive</strong>: JavaScript will attempt to call obj.toString() to coerce an object to a string.</li><li><strong>toString() Method</strong>: When an object is coerced to a string, JavaScript calls the toString() method. If not overridden, it returns the string &quot;[object Object]&quot;.</li></ul><p>You can customize the string representation of objects by overriding the toString() method.</p><pre>let user = {<br>  name: &#39;Julkhair&#39;,<br>  toString: function() {<br>    return this.name;<br>  }<br>};<br>console.log(user + &#39;&#39;);  // &quot;Julkhair&quot; (custom toString() method)</pre><h4>2. Coercion with Arrays</h4><p>Arrays are also objects in JavaScript, but they behave slightly differently when coerced. Arrays are <strong>implicitly coerced to strings</strong> by joining their elements with commas.</p><p><strong>Example:</strong></p><pre>let arr = [1, 2, 3];<br>console.log(arr + &#39;&#39;);  // &quot;1,2,3&quot; (array coerced to string)<br>console.log(arr * 2);   // NaN (array coerced to string, then string coerced to NaN)<br>console.log(arr == &#39;1,2,3&#39;); // true (Array coerced to string, then compared)</pre><p>If the array cannot be converted to a number, JavaScript will return NaN.</p><ul><li><strong>Array to Number</strong>: If an array is used in an arithmetic operation, JavaScript first tries to convert it to a string, and then to a number. This often leads to NaN if the string cannot be interpreted as a valid number.</li><li><strong>Array to String</strong>: When an array is coerced to a string (e.g., with +), JavaScript calls the array’s toString() method and joins its elements with commas. In the case of [1, 2, 3], the result would be &quot;1,2,3&quot;.</li></ul><h4>3. Coercion with Functions</h4><p>Functions are also objects in JavaScript, and like other objects, they can be coerced into a string. The string representation of a function is its source code (the function body).</p><p><strong>Example:</strong></p><pre>let func = function() { return &#39;hello&#39;; };<br>console.log(func + &quot;&quot;);  // &quot;function() { return &#39;hello&#39;; }&quot; (function coerced to string)<br>console.log(func == &#39;function() { return \&#39;hello\&#39;; }&#39;); // true (function coerced to string)</pre><ul><li><strong>Function to String</strong>: When a function is coerced to a string, JavaScript uses the function’s toString() method to get its source code (the function definition itself). However, this coercion is quite specific and not often seen in everyday JavaScript code.</li><li>Since functions have a toString() method, calling func + &#39;&#39; will return the function’s source code as a string.</li></ul><h4>Best Practices for Avoiding Issues with Type Coercion</h4><ol><li><strong>Use </strong><strong>=== instead of </strong><strong>==</strong>: The strict equality operator (===) does not perform type coercion, making it the safer choice for comparisons.</li><li><strong>Be careful with objects and arrays</strong>: When concatenating objects or arrays to strings, be aware of how JavaScript will convert them into strings. Overriding toString() can help you control this behavior.</li><li><strong>Explicit type conversion</strong>: When you expect a specific type, use explicit coercion functions like String(), Number(), or Boolean() to avoid unexpected behavior.</li></ol><pre>// 1 exmaple<br>console.log(0 === &#39;0&#39;);  // false (no coercion)<br>console.log(null === undefined);  // false (different types)<br><br>// 2 exmaple<br>let arr = [1, 2, 3];<br>console.log(arr.toString());  // &quot;1,2,3&quot;<br><br>// 3 example<br>let str = &#39;42&#39;;<br>let num = Number(str);  // explicit coercion<br>console.log(num);        // 42</pre><h3>Conclusion</h3><p>Type coercion in JavaScript is a powerful feature, but it can also be a source of confusion and bugs if not handled carefully. By understanding how <strong>primitive</strong> and <strong>non-primitive types</strong> behave during coercion, you can write more predictable and reliable JavaScript code.</p><ul><li><strong>Primitive types</strong> (like strings, numbers, and booleans) are usually easy to work with during coercion.</li><li><strong>Non-primitive types</strong> (such as objects, arrays, and functions) can have more complex coercion behavior, often involving toString() or valueOf() methods.</li></ul><p>By practicing awareness of JavaScript’s coercion rules and using the <strong>strict equality operator</strong> (===), you can avoid many of the common pitfalls that come with type coercion.</p><h3>Thank You for Reading!</h3><p>We hope this article helped you get a clearer understanding of <strong>type coercion</strong> in JavaScript, especially when dealing with <strong>primitive</strong> and <strong>non-primitive types</strong>.</p><p>Feel free to refer back to this post whenever you need a quick refresher, or share it with others who might find it useful! Happy coding, and thank you for taking the time to read!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f5a6364b3e9a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Quickly Create or set up GitHub SSH in Ubuntu 23.04 Example]]></title>
            <link>https://medium.com/@jul.khair0786/quickly-create-or-set-up-github-ssh-in-ubuntu-23-04-example-cf298b1f22a1?source=rss-b1897174d265------2</link>
            <guid isPermaLink="false">https://medium.com/p/cf298b1f22a1</guid>
            <dc:creator><![CDATA[Nyazi Mohammed Julkhair Naine Khan]]></dc:creator>
            <pubDate>Sat, 10 Jun 2023 11:39:26 GMT</pubDate>
            <atom:updated>2023-06-14T17:20:31.898Z</atom:updated>
            <content:encoded><![CDATA[<p>Utilising SSH is among the most secure methods of communication across open networks.</p><p>For this reason, users of the well-known Git service place a high importance on setting up their GitHub SSH keys.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/853/1*jnWk-I9nmRHQT_DPfsgeqg.png" /><figcaption>keys to secure communication between two points</figcaption></figure><h3><strong>What is Public and Private SSH key ?</strong></h3><p>The full form of SSH key is “Secure Shell key.” SSH is a network protocol that allows secure remote communication between two computers. SSH keys are a pair of cryptographic keys used for authentication in SSH protocol.</p><p>A public SSH key is a cryptographic key that is used with GitHub to securely communicate data between your machine and the servers. It is linked to your GitHub account and enables you to authenticate and access your repositories securely.</p><p>An SSH key pair is made up of a public key and a private key when it is generated locally. The private key is used for authentication when creating a secure connection between your local machine and remote services, such as GitHub, and is designed to be kept secret.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/603/1*UWEUCUaqdd2zGulBurRlhQ.png" /><figcaption>This is a SSH key authentication flow diagram (img taken from <a href="http://www.manageengine.com/">www.manageengine.com</a>)</figcaption></figure><h3>GitHub SSH key setup to follow this steps : -</h3><p>To setup your GitHub SSH Key in your Ubuntu machine</p><ol><li>Create a GitHub SSH key in your local machine by using ssh-keygen command.</li><li>The public SSH key’s value should be copied to the clipboard.</li><li>After logging in, go to your account settings on GitHub.</li><li>Select the SSH and GPG links.</li><li>To link the public SSH key to your account, click Add Key.</li><li>Put the copied value in the text box after naming the key.</li><li>Save your changes</li><li>Use the SSH-based GitHub URL in your Git client to clone your repository.</li></ol><p>Let’s go through each of these GitHub SSH key setup one by one.</p><h3>Create a GitHub SSH Key</h3><ol><li>In Ubuntu open you terminal ( by using shortcut key ctrl + alt + t).</li><li>Check if you have an existing SSH key pair in your local machine.</li></ol><pre>#it will navigate to .ssh folder or directory<br>julkhair@julkhair-Developer:~$ cd ~/.ssh<br>#ls is a commend to show the list of files and directorys<br>julkhair@julkhair-Developer:~/.ssh$ ls</pre><p>You already have an SSH key pair if you see files like id_rsa and id_rsa.pub. In such case, move directly to step 5.</p><p>3. If you don’t have a SSH key pair, Then generate a new key by running the following command:</p><pre>#this command is used to generate a new key.<br>julkhair@julkhair-Developer:~/.ssh$ ssh-keygen -t rsa -b 4096 -C &quot;your_email@example.com&quot;</pre><p>Your GitHub account’s email address should be used in place of “<a href="/service/mailto:your_email@example.com">your_email@example.com</a>”. If preferred, you may leave it blank or enter another email address.</p><pre>julkhair@julkhair-Developer:~/.ssh$ ssh-keygen -o -t rsa -C &quot;github@julkhair.com&quot;<br>Generating public/private rsa key pair.<br>Enter file in which to save the key (/home/julkhair/.ssh/id_rsa): <br>Enter passphrase (empty for no passphrase): <br>Your identification has been saved in /home/julkhair/.ssh/id_rsa<br>Your public key has been saved in /home/julkhair/.ssh/id_rsa.pub<br>The key fingerprint is: SHA256:g7RTuw9S+...<br>The key&#39;s randomart image is:<br>+---[RSA 3072]----+<br>|  ..Bo+.+o.. |<br>|. *.= +E . . |<br>| ...+ .. . . |<br>| +.. ...+ o  |<br>|  B o  ++  S |<br>| o . * = o + |<br>| o  B.oo  .  |<br>|   = oo  +   |<br>|   .o .o .   |<br>+----[SHA256]-----+</pre><p>The GitHub ssh-keygen command’s input parameters fulfil the following purposes:</p><ul><li>The OpenSSH format for SSH keys must be generated by the utility when using the -o parameter.</li><li>The -t parameter indicates the kind of SSH keys to generate.</li><li>The public key can have comments added as metadata by using the -C parameter.</li></ul><p>4. A file location to save the key pair will be requested from you. Usually, the default directory is /.ssh/id_rsa. To accept the default location, press Enter.</p><p>5. After that, you will be prompted to input a key passphrase. Although it is optional, using a password adds an extra degree of protection and is strongly advised. Leave the field blank if you don’t wish to use a passphrase. Enter the key.</p><p>Note: For security purposes, no characters will be seen on the screen when you type the passphrase. Simply input it and hit Enter.</p><p>6. The created SSH key pair is now available. The public key can now be added to your GitHub account.</p><p>7. You may see what’s in your public key by using the command:</p><pre>#this commend is used for display the your public key in command prompt<br>julkhair@julkhair-Developer:~/.ssh$ cat ~/.ssh/id_rsa.pub</pre><p>8. Copy the entire output of the command prompt. It is an image of your public key.</p><p>9. Visit the GitHub website and log in to your account.</p><p>10. Click on your profile picture in the top right corner of the page, then choose “Settings” from the dropdown menu.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ihVMyuUuXSUJqD1A5z28UA.png" /><figcaption>This is my github settings page</figcaption></figure><p>11. Please choose “SSH and GPG keys” from the left sidebar.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/392/1*IkMiH4Nrau2AoMzMX_Jq5w.png" /><figcaption>This is a github settings page left panel to click SSH and GPG keys</figcaption></figure><p>12. Select “New SSH key” from the menu.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/891/1*ckCDNpef_n_Rz8kU72deyw.png" /><figcaption>New SSH key button</figcaption></figure><p>13. In the “Title” section, enter an appropriate title for the key.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/522/1*o2Mm7291-d1vqj4tg5CB7A.png" /><figcaption>Adding the SSH key title</figcaption></figure><p>14. Copy the public key, and then paste it into the “Key” section.</p><p>15. In the end, press the “Add SSH key” button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/899/1*fAuhg7jdS5-j6Pijy1Ua0w.png" /><figcaption>Key place where we can add our public key</figcaption></figure><p>Your GitHub account has now been updated with your SSH key. You may use it to communicate with your repositories and securely authenticate.</p><p>16. Set up Git on your local computer: Run the following commands in a terminal window on your local computer to configure your Git username and email (change “Your Name” and “<a href="/service/mailto:your_email@example.com">your_email@example.com</a>” with your actual name and email address):</p><pre>#setting user.name and user.email globally<br>julkhair@julkhair-Developer:~$ git config --global user.name &quot;Your Name&quot;<br>julkhair@julkhair-Developer:~$ git config --global user.email &quot;your_email@example.com&quot;</pre><h3>With global : -</h3><p>If you write a global it will set a username and email for every repository in our computer.</p><h3>Without global : -</h3><p>If you remove global it will set a username and email for just this current repository in our computer.</p><p>17. Check the SSH connection: You may test the connection to GitHub to make sure your SSH key has been properly configured. Run the upcoming command in your terminal:</p><pre>#checking ssh key is correctly set or not<br>julkhair@julkhair-Developer:~$ ssh -T git@github.com</pre><p>If your SSH key is correctly set, you should see message like “Hi username! You’ve successfully authenticated, but GitHub does not provide shell access.”</p><p>18. Configure Git to use SSH as follows: If you haven’t previously, set Git to use SSH as the remote protocol. This guarantees that SSH is used for authentication when cloning or interacting with GitHub repositories. In your terminal :</p><pre>julkhair@julkhair-Developer:~$ git config --global url.&quot;git@github.com:&quot;.insteadOf &quot;https://github.com/&quot;</pre><p>19. Clone a repository: Using the SSH URL, you may now clone a repository from your GitHub account to your local system. Go to the GitHub repository, click the “Code” button, and copy the SSH URL. Navigate to the location where you want to clone the repository in your terminal and enter the following command:</p><pre>julkhair@julkhair-Developer:~$ git clone &lt;SSH_URL&gt;</pre><p>“&lt;SSH_URL&gt;” should be replaced with the SSH URL you obtained from GitHub.</p><p>20. Start working with the repository: Your GitHub account has now been connected to your local machine. You can edit the cloned repository, commit it with Git, and push the changes back to GitHub with commands like “git add” , “git commit”, and “git push”.</p><p>Following these instructions will allow you to link your GitHub account to your local workstation, allowing you to quickly collaborate and manage your repositories.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cf298b1f22a1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[React Js intro like what is react ? why react ? what is Jsx & it’s style types ? what is babel ?]]></title>
            <link>https://medium.com/@jul.khair0786/react-js-intro-like-what-is-react-why-react-what-is-jsx-its-style-types-what-is-babel-6c8e9e71b564?source=rss-b1897174d265------2</link>
            <guid isPermaLink="false">https://medium.com/p/6c8e9e71b564</guid>
            <category><![CDATA[react-js-tutorials]]></category>
            <dc:creator><![CDATA[Nyazi Mohammed Julkhair Naine Khan]]></dc:creator>
            <pubDate>Fri, 18 Nov 2022 07:48:02 GMT</pubDate>
            <atom:updated>2022-11-18T10:13:07.065Z</atom:updated>
            <content:encoded><![CDATA[<h3>React Js intro like what is react ? why react ? what is Jsx &amp; it’s style types ? what is babel ?</h3><h3>What is React ?</h3><ul><li>React is a Declarative, Efficient, Flexible javascript library for building user interfaces.</li><li>React was created by Facebook.</li><li>It contains components which are small and reusable pieces of code.</li><li>React is used to build single page applications — An application which has only one HTML page.</li><li>React allows us to create reusable UI components.</li><li>React latest release is (node 18.8.0 V)(npm 8.18.0)</li></ul><h3><em>Why do we choose React ?</em></h3><ul><li>It is Fast to Run (or) Fast to Execute.</li><li>React is a Scalable and Flexible.</li><li>React has a huge (or) Big community and it’s more Populer.</li><li>React is a Fully Open Source.</li><li>More Job Opportunities in React.</li></ul><h3>What is a VirtualDOM ?</h3><ul><li>React has its own way to handle the DOM(Document Object Model) Changes.</li><li>VirtualDOM is used to make new changes on web page and it’s updates only that need to changing particular element in web page.</li></ul><h3>What is JSX ?</h3><ul><li>JSX full form is Javascript XML or Javascript Extension.</li><li>Jsx allows us to write HTML element/tags in Javascript code.</li><li>Jsx is easy to write and it’s same as HTML tags. follow the below examples.</li></ul><p>Example : -</p><pre>//JSX syntax : - for open tag and close tag<br>//we don&#39;t need to use quotes with JSX<br>//cont greetings is a javascript variable name And i&#39;m assign HTML tage in side <br>//content as a value.<br>const greetings = &lt;h1&gt; Hi All &lt;/h1&gt;;<br>const name = &lt;h2&gt; This is Julkhair. &lt;/h2&gt;</pre><ul><li>We can write jsx tags as same as HTML tag like open and close tags (or) Self-closing tag (i.e. &lt;input/&gt;, &lt;hr/&gt;, &lt;br/&gt;, &lt;img/&gt; etc…) follow the below Example.</li></ul><pre>//Jsx Syntax :- for self-closing tag. <br>const logo =&quot;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAL4AAAB6CAMAAAA20xkNAAAAY1BMVEX////v7+5h2vzu7u3+/v77+/vt7ezw8O/4+Pf09PNa2fxT2Pz08O1L1/z//Pv68ex63frX9P3D6fTw+/6F4f2x6vu75/XO6/OP4vuZ4/lu2/vn9vvh7fDn7u/U6/LE8P6m6P0hoRJuAAAPNklEQVR4nO1ciZbiuA7NSsB2QnayJ///lc+WZGenqGromvNOu+dMt4FcLo4sX0tyLAubZ2O7edj3XerT+1fsulfdx/cvPvVv+H5AfS/A/uWz8Lb1j/4/+v/o/x/Qdw3+hfprvK/w7ef03w1vWx42P8B2O+lfqX+l/u2k76/79mfhA4t+RoAvW36g7yr16S5fqX/d9GlYXJ/G4baC8yz3o/DeTJ/uqsFf3+XryV0mPH2XNb5NcNbls/A/pG+v8YV4nb4Qymi+Ba9G/3P0RfAopnoqxnaeYyf0I9E/irqqqmLM/iP03aJh0DiLy8EOntFPaofjh5kzev8B+qLLQ+ZQYyGvHrY4oz9WnC8+m2fvou8a+jYAuC/PrT43hJAVi4dgSx/gk5itPxrG2ZfwW//vbujfqPnYrif960n/lnPF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9sGyeXlSA3GsTin0yXlGWCD4sPSyFp8KweLgXIYSXwCtx7z6F/+MC+C+ewgFbKebkxTgWtY48c1bq79MxzsTRRyhYXsk9fEUbsuA5/MefUUIuUj1gRUs0Vpkzioa+3PEaCcd0kJNVJ8vV36Pfm5pgIsfj1BaHJdhTuP4ob7Lot58QY/fVsoqf52kf2CfZlXZy5mCn/OjbnhDzJ8/nCcoYz3iEcJJArPA3z+dRySB1zoWHYawqxt9O336J/krRqiceqQceJUlmiQ3+9ulIgd0N6VTVaeK/Cm/vUnML+j8RysH2iWMC6vfV5SfKdiWU4TTdd+AN3A5+1vs06rpvVl0dN9J3ddV35zgSjrKhTe9bH4X/Kkj41QNufvxQv/fA/589k/Af/X/0f0z/u6m58yfQuEf03w3/Zw+4eSFz+WF4WrYWT5ykdUY/cfL4iWOLJ05i3zxxcr2uWO5H4f890BLffy/9l+H/B6eTYvdB0QyRAAAAAElFTkSuQmCC&quot;;<br>const image = &lt;img src={logo} alt=&#39;React Logo&#39;/&gt;;</pre><h3>What is Babel ?</h3><ul><li>JSX will be converted to JavaScript on browser by using <a href="https://babeljs.io/">babel.js</a> file or CDN script tag.</li><li>Babel is a library which is used to convert JSX code to pure JavaScript (or) vanilla javascript and latest JavaScript to older version. See the first JSX syntax code.</li></ul><h3>What is JSX Element ?</h3><ul><li>JSX element by adding more HTML elements inside a parent tag.</li><li>Every HTML element should be wrapped by an outer/parent tag HTML element to create a valid JSX element.</li></ul><p>Example :-</p><pre>const details = &lt;div&gt;<br>  &lt;h2&gt;Hi Welcome to My Blog&lt;/h2&gt;<br>  &lt;h2&gt;Here we discuss about react js&lt;/h2&gt;<br>&lt;/div&gt;</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6c8e9e71b564" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>