<?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 Adedoja Adeeyo on Medium]]></title>
        <description><![CDATA[Stories by Adedoja Adeeyo on Medium]]></description>
        <link>https://medium.com/@adeeyoadedoja?source=rss-9f2c763cd52d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*KoWYihQ8lmG3Pyx5eVDgwA.jpeg</url>
            <title>Stories by Adedoja Adeeyo on Medium</title>
            <link>https://medium.com/@adeeyoadedoja?source=rss-9f2c763cd52d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 20 Nov 2026 02:13:36 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@adeeyoadedoja/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[Comparisons in JavaScript (== & ===)]]></title>
            <link>https://medium.com/@adeeyoadedoja/comparisons-in-javascript-72c7a80e79cc?source=rss-9f2c763cd52d------2</link>
            <guid isPermaLink="false">https://medium.com/p/72c7a80e79cc</guid>
            <category><![CDATA[javascript-tips]]></category>
            <category><![CDATA[comparison]]></category>
            <dc:creator><![CDATA[Adedoja Adeeyo]]></dc:creator>
            <pubDate>Tue, 15 Oct 2024 15:30:37 GMT</pubDate>
            <atom:updated>2024-10-15T15:30:37.258Z</atom:updated>
            <content:encoded><![CDATA[<p>In JavaScript, there are three different value-comparison operations:</p><ul><li>Loose equality Operator (==)</li><li>Strict equality Operator (===) and</li><li>Object.is()_</li></ul><p>But for this article, we are going to focus on loose and strict equality operators and see the difference between both of them and why they are so named.</p><ul><li><strong>Loose Equality Operator (==) Double Equals:</strong></li></ul><p>This operator checks for equality after comparing both values to a common type. This process is called type coercion. It does not care if the values are of different types; it attempts to convert them before comparing.</p><p>Let’s see an example:</p><pre>10 == &#39;10&#39; //true<br>false == 0//true</pre><p>In the example above, the string ‘10’ is seen as the number 10 and the comparison returns true. Also, false is converted to 0 and seen as a number resulting in true.</p><ul><li><strong>Strict Equality Operator (===) Triple Equals:</strong></li></ul><p>This operator compares both the value and the data type. If the data types are different, the comparison will return false even if the values are the same. It requires both the value and the type to be identical for the comparison to be true.</p><p>Let’s see an example:</p><pre>10 === &#39;10&#39; //false<br>false === 0//false<br></pre><p>In the example above, even though both values are 10, they are of a different data type (one is a number and the other is a string) so the comparison returns false. And since false and 0 are of different types, no conversion happens and it returns false.</p><p>It is generally advisable to use the strict equality operator (===) to avoid unexpected and unnecessary type conversions.</p><p>Hope this helps!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=72c7a80e79cc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The console.log()]]></title>
            <link>https://medium.com/@adeeyoadedoja/the-console-log-88c11d052a8a?source=rss-9f2c763cd52d------2</link>
            <guid isPermaLink="false">https://medium.com/p/88c11d052a8a</guid>
            <category><![CDATA[javascript-tips]]></category>
            <category><![CDATA[console-log]]></category>
            <dc:creator><![CDATA[Adedoja Adeeyo]]></dc:creator>
            <pubDate>Tue, 15 Oct 2024 13:58:35 GMT</pubDate>
            <atom:updated>2024-10-15T14:03:42.224Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*geLnYVwwCOz049IhWr2OoA.jpeg" /><figcaption>I found the actual log.</figcaption></figure><p>What exactly is it?</p><p>Popularly known as the developer’s best friend, the console.log is a built-in function in JavaScript that allows you to output messages or values to the web console. It provides a way for you to see what is happening during execution for a quick feedback. It helps you see your code in real-time. And because it does this, it is very useful for testing and debugging purposes. As you can see the print out of your code, it is easy to see if your code runs as it should and also identify where you made an error in your code and correct it.</p><p>Using the console.log is quite straightforward. Here’s a simple application:</p><pre>let name = &quot;Adedoja Adeeyo&quot;;<br>console.log(name);</pre><p>The code above will output “Adedoja Adeeyo” to the browser console. In this same way, you can also log various data types such as numbers, objects and arrays to the console.</p><p>Hope this helps!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=88c11d052a8a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Declaring Variables in JavaScript.]]></title>
            <link>https://medium.com/@adeeyoadedoja/declaring-variables-in-javascript-2c1d321ee1d6?source=rss-9f2c763cd52d------2</link>
            <guid isPermaLink="false">https://medium.com/p/2c1d321ee1d6</guid>
            <category><![CDATA[variables-in-javascript]]></category>
            <dc:creator><![CDATA[Adedoja Adeeyo]]></dc:creator>
            <pubDate>Tue, 15 Oct 2024 13:00:49 GMT</pubDate>
            <atom:updated>2024-10-15T13:00:49.775Z</atom:updated>
            <content:encoded><![CDATA[<p>Before we learn how to declare variables in JS, let’s define what they are first.</p><p><strong>What are Variables?</strong></p><p>Simply put, Variables act as containers for storing data values. In JavaScript, a variable can hold various types of data, including numbers, strings, objects, and more. They allow us to store and manipulate data efficiently.</p><p>In JavaScript, there are three different methods of variable declaration. Understanding where and how a variable can be accessed in your code is crucial for writing effective JavaScript and in this article, we will explore how to use each of them efficiently.</p><p><strong>Variable Declaration Keywords</strong></p><p>There are three major keywords used to declare variables in JavaScript. The <strong>var</strong>, <strong>let</strong> and <strong>const</strong> keywords.</p><ol><li><strong>Var</strong></li></ol><p>The var keyword is quite old and used to be the only way to declare variables in JS. They are used to declare function-scoped or globally-scoped variables. Function-scoped meaning that they are only visible within the function where they are declared. If declared outside a function, they become global. Var can also be re-declared and updated.</p><p>2. <strong>Let</strong></p><p>The let keyword is a newer way to declare variables. Variables declared with this keyword are block-scoped. This means they cannot be accessed outside the block {} they were declared in. They cannot be re-declared inside the same block but they can be updated.</p><p>3. <strong>Const</strong></p><p>The const keyword is used for constants. Variables declared with this keyword are block-scoped and cannot be updated or re-declared. As the name implies, it is constant.</p><p>In Summary:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/736/1*uCGTn_HW2Jh9xP21JnygSg.jpeg" /></figure><p>Hope this helps!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2c1d321ee1d6" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>