<?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 Chidubem Odunze (F) on Medium]]></title>
        <description><![CDATA[Stories by Chidubem Odunze (F) on Medium]]></description>
        <link>https://medium.com/@odunzechidubem73?source=rss-2ce7bbfc3e0d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*45gJY2N1HX6eFnnvLHgPXA.jpeg</url>
            <title>Stories by Chidubem Odunze (F) on Medium</title>
            <link>https://medium.com/@odunzechidubem73?source=rss-2ce7bbfc3e0d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 20 Nov 2026 16:34:33 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@odunzechidubem73/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[React Fundamentals]]></title>
            <link>https://medium.com/@odunzechidubem73/react-fundamentals-1fe338e3bb5e?source=rss-2ce7bbfc3e0d------2</link>
            <guid isPermaLink="false">https://medium.com/p/1fe338e3bb5e</guid>
            <category><![CDATA[reactjs]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[vitejs]]></category>
            <dc:creator><![CDATA[Chidubem Odunze (F)]]></dc:creator>
            <pubDate>Fri, 22 Mar 2024 19:32:58 GMT</pubDate>
            <atom:updated>2024-03-22T19:37:48.009Z</atom:updated>
            <content:encoded><![CDATA[<p>React is a frontend JavaScript library that offers a robust functionality and flexibility in building interactive user interfaces.</p><p>It gained popularity due to its use by companies like Meta (Facebook), Netflix, Amazon, among others.</p><p>It has created lots of job opportunities in the eyes of recruiters since it’s now part of the requirements they want from aspiring developers who want to join their teams.<br>With React developers can create single page application (SPA) — This is the ability to navigate between pages nested in a single page without having to reload.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rld4tebVjYv0miI3vNEKyA.jpeg" /><figcaption>Image 1 - YouTube</figcaption></figure><p>The image above shows a navigation from Genesys YouTube channel from <a href="http://www.youtube.learnable/videos">www.youtube.learnable/videos</a> to <a href="http://www.youtube.learnable/playlist">www.youtube.learnable/playlist</a></p><h3>What part of React do I understand the most.</h3><p>This would be about react components which represents parts of the user interface.</p><p>There are different components in a simple React application, each components representing a specific code function that describes the properties of a particular user interface.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NnTc62lDb7GB5K4COUhEIw.jpeg" /><figcaption>Image 2 - React layout of a web app</figcaption></figure><p>These individual components when combined in a Root component (App.jsx) make up the React application.</p><p>Another important feature of a typical React application is Reusability. This means that a component can be used with different properties (props) to display different information.</p><p>Eg The Right side bar and the Left side bar (see image 2). The two components are similar but their properties are different.</p><p>When writing a React application the components are mostly written in a .js or .jsx file extension.</p><p>Unlike regular .js files, the .jsx gives the unique property for writing HTML syntax inside JavaScript to describe the UI elements.</p><p>Components are made of two types which are:</p><ul><li>Functional based components and</li><li>Class based components.</li></ul><p>These influences the type of code properties a component possess.</p><h3>Function-based components:</h3><p>are made up for regular JavaScript function declaration with props which stands for properties.</p><p>These props allow for the transfer of data from parent component to child component.</p><p>Function-based components are stateless (i.e They don’t have their own state). A State is an inbuilt property that allows components to have dynamic data stored and managed in them. Thus function-based components rely on the props passed in to them by their parent components.</p><h3>Class-based Components:</h3><p>These are made up of regular JavaScript ES6 Classes that extends a component class from the React library. They must contain a render () method which returns HTML to be rendered in the .jsx file.</p><p>Similar to function-based, components, Class-based components also have props which are passed as attributes from parent to child component using the &quot;this&quot; keyword attached to the property just like an ES6 Class attribute eg. this., props. …<br>Class-based Components on the other hand are Stateful which means they can have their state.</p><h3>Todolist APP</h3><p>To build a Todolist APP you begin by:</p><ul><li>Setting up the React environment which first is to install Node.js into your system (laptop/desktop). You can download it from the official Node.js website: <a href="https://nodejs.org/en">https://nodejs.org/en</a></li><li>Open your terminal either the system terminal or your code editor terminal then navigate to your desired directory (folder) and run the create react app command, I used vite for mine anyways, you can make further research.</li></ul><pre>$ npm create vite@latest &quot;project name here&quot;<br></pre><p>For example, I want to install the package manager. I will type npm create vite@latest my-todo-app. my-todo-app is my project name and it will create and run the scripts.</p><p>You’ll be asked to “select a framework”.</p><p>Vite allows you to choose any framework you want to use, then use your keyboard arrow key to select React.</p><p>After selecting the React framework Vite will prompt you to choose the language you want to work with on your project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/981/1*PFSS24qKyhVGlY3WIQdUxw.jpeg" /><figcaption>Image 3 - language selection</figcaption></figure><p>This is the output you’ll get on your terminal, so you select JavaScript. You can choose any language of your choice anyways.</p><p>Below is the output you’ll see on your terminal then check your folder and see if the packages are installed.</p><p>Vite will quickly generate all the requirements for your project. If it is not installed then you must have missed one of the steps. If installed then you’re good to go 👍🏾</p><ul><li>npm installation. So you change your working directory into the folder of the project using the “cd” command. Then use “npm install” or “npm i” for short to install the node modules package as you can’t work on your project without them.</li></ul><p>This command when followed well gives you all you need to get your project running.</p><p>Vite allows you to see the package dependencies installed. Then you run “npm run dev” command as displayed on your terminal to get the app running then click on the localhost link provided in your terminal to display the vite default app on your browser, then you can begin your editing as desired.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7x4LvcuexRYmd9Z6mSSo_w.jpeg" /><figcaption>Image 4 - Vite React Default app running on browser.</figcaption></figure><p>NOTE: You must have a good network for these installations to work well and fast.</p><p>I hope this helps beginners to some extent. For more detailed understanding visit: <a href="https://react.dev/">https://react.dev/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1fe338e3bb5e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HTML Semantics Explained]]></title>
            <link>https://medium.com/@odunzechidubem73/html-semantics-explained-1f09f2ef2c94?source=rss-2ce7bbfc3e0d------2</link>
            <guid isPermaLink="false">https://medium.com/p/1f09f2ef2c94</guid>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[html5]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Chidubem Odunze (F)]]></dc:creator>
            <pubDate>Sun, 04 Feb 2024 18:37:36 GMT</pubDate>
            <atom:updated>2024-02-04T21:27:01.823Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/766/1*Zdcpe1oOwoVUgC-oggCASw.jpeg" /><figcaption>Semantics and non Semantic HTML tags</figcaption></figure><p>In this article we’ll be talking about HTML Semantics.</p><h4>What Is Semantic HTML?</h4><p>Semantic HTML refers to the use of HTML tags that convey the meaning of the content contained within them.</p><p>By adding semantic HTML tags to your pages, you provide additional information that helps define the roles and relative importance of the different parts of your page, as opposed to non-semantic HTML, which uses tags that don’t directly convey meaning.</p><p><em>Note: HTML is a language that is used to structure a website. This guide assumes a basic understanding of HTML. If you’re a total beginner, looking at an HTML introduction guide </em><a href="https://www.w3schools.com/html/html_intro.asp"><em>https://www.w3schools.com/html/html_intro.asp</em></a><em> will be helpful.</em></p><p>What Are Semantic HTML Tags?<br>Semantic HTML tags are tags that define the meaning of the content they contain.</p><p>For example, tags like &lt;header&gt;, &lt;article&gt;, and &lt;footer&gt; are semantic HTML tags. They clearly indicate the role of the content they contain.</p><p>On the other hand, tags like &lt;div&gt; and &lt;span&gt; are typical examples of non-semantic HTML elements. They serve only as content holders but give no indication as to what type of content they contain or what role that content plays on the page.</p><h4>Why Do we Need to Use Semantic HTML Tags?</h4><p>Besides the obvious reason that semantic HTML tags are easier to read and understand, for example, by web developers reviewing the code, there are two more specific reasons why you should always use semantic tags:</p><h4>Accessibility:</h4><p>For sighted users, it’s easy to identify the various parts of a webpage. Headers, footers, and the main content are all immediately visually apparent.</p><p>However, it is not that easy for users who are blind or visually impaired and rely on screen readers.</p><p>The proper use of HTML semantic tags will allow these readers to understand your content better because their screen readers will communicate your content more accurately.</p><h4>SEO:</h4><p>Semantic HTML tags are important for SEO (search engine optimization) because they indicate the role of the content within the tags.</p><p>That information gives search engine crawlers, like Googlebot, a better understanding of your content. This increases the chances that your content will be selected as a candidate for ranking on the search engine results page (SERP) for relevant keywords.</p><p>To put it simply, pages with correctly implemented semantic HTML have an advantage in SEO over those that don’t.</p><p>You can use a tool like Site Audit to find HTML tag issues that may be affecting your SEO.</p><h4>Types of HTML Semantic Tags</h4><p>Semantic tags can define different parts of a webpage.</p><p>Let&#39;s take a look at the most common semantic HTML elements, divided into two categories based on their usage:</p><ul><li>HTML semantic tags for structure</li><li>HTML semantic tags for text</li></ul><h4>HTML Semantic Tags for Structure:</h4><p>Many semantic HTML tags communicate the layout of a page.</p><p>These “structural” tags were introduced when HTML4 got upgraded to HTML5. That&#39;s why they&#39;re also commonly known as semantic HTML5 tags or semantic HTML5 elements.</p><p>semantic html elements<br>Here’s a full list:</p><ol><li>&lt;header&gt;: The header tag defines content that should be considered the introductory information of a page or section</li><li>&lt;nav&gt;: The navigation tag is used for navigation links. It can be nested within the &lt;header&gt; tag, but secondary navigation &lt;nav&gt; tags are also commonly used elsewhere on the page.</li><li>&lt;main&gt;: This tag contains the main content (also called the body) of a page. There should be only one tag per page.</li><li>&lt;article&gt;: The article tag defines content that could stand independently of the page or site it’s on. It does not necessarily mean a “blog post.” Think of it more as “an article of clothing”—a self-contained item that can be used in various contexts.</li><li>&lt;section&gt;: Using &lt;section&gt; is a way of grouping nearby content of a similar theme. A section tag differs from an article tag. It isn’t necessarily self-contained, but it forms part of something else.</li><li>&lt;aside&gt;: An aside element defines content that’s less important. It’s often used for sidebars—areas that add complementary but nonessential information.</li><li>&lt;footer&gt;: You use &lt;footer&gt; at the bottom of a page. It usually includes contact information, copyright information, and some site navigation.</li></ol><h4>HTML Semantic Tags for Text:</h4><p>The semantic HTML tags for text are HTML tags that—besides the formatting—also convey the semantic function of the text they contain.</p><p>Here are some of the most common examples:</p><ol><li>&lt;h1&gt; (heading): The H1 tag marks the top level heading. There’s usually only one H1 heading per page.<br>&lt;h2&gt; to &lt;h6&gt; (subheadings): The subheadings of various levels of importance. There can be multiple headings of the same level on a single page.</li><li>&lt;p&gt; (paragraph): A standalone paragraph of text.</li><li>&lt;a&gt; (anchor): Used to mark up a hyperlink from one page to another.</li><li>&lt;ol&gt; (ordered list): A list of items that are displayed in a particular order, starting with bullet points. One &lt;li&gt; (list item) tag contains a single item in the list.</li><li>&lt;ul&gt; (unordered list): A list of items that do not need to be displayed in a particular order, starting with ordinal numbers. One &lt;li&gt; (list item) tag contains a single item of the list.</li><li>&lt;q&gt; / &lt;blockquote&gt;: A quotation of the text. Use &lt;blockquote&gt; for long, multi-line quotations and &lt;q&gt; for shorter, inline quotations.</li><li>&lt;em&gt; (emphasis): Used for text that should be emphasized.<br>&lt;strong&gt; (strong emphasis): Used for text that should be strongly emphasized.</li><li>&lt;code&gt;: A block of computer code.</li></ol><p><em>Note: I’ve only listed some of the most common semantic HTML tags. You can use many others like &lt;summary&gt;, &lt;time&gt;, &lt;address&gt;, &lt;video&gt;, etc. to make the content of your website easier to understand. To discover more HTML semantic elements, check out the list of all HTML tags by W3Schools.</em></p><h4>Semantic HTML Tips &amp; Best Practices:</h4><p>So here we’ll cover some HTML implementation tips based on common mistakes people make when using semantic HTML tags.</p><h4>Don’t Use Semantic HTML Tags for Styling:</h4><p>Although web browsers apply styling to many semantic tags (e.g., the text within an &lt;a&gt; tag is usually blue and underlined), it doesn’t mean HTML tags are supposed to be used to style your text. In other words, just as you wouldn’t use an &lt;a&gt; tag for a “non-link” text just to make it blue and underlined, you should not use other semantic tags for purely stylistic purposes. Here are some typical examples of using semantic tags incorrectly: Using an &lt;h1&gt; to &lt;h6&gt; tag for text that is not a heading with the purpose of changing its font size<br>Using &lt;blockquote&gt; just to indent text that is not a quotation<br>Using &lt;strong&gt; or &lt;em&gt; just to add bold or italics to text that doesn’t need emphasis.<br>For styling purposes, always use CSS.</p><h4>Nest the Heading Tags with Semantics in Mind:</h4><p>Always order header elements by importance.</p><p>For example, all the H3 headings that follow a certain H2 heading should be subtopics of that H2. This way, the structure of headings creates a logical hierarchy of the topics within your piece of content and helps both readers and search engines better understand and navigate the text.</p><h4>Don’t Just Copy Your Visual Layout:</h4><p>Your HTML implementation shouldn’t be a mere duplicate of the visual layout. Instead, it should follow the semantic structure of the page.</p><p>Let’s end it here. You can do your research for more knowledge the subject of discuss here.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1f09f2ef2c94" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[UML DEFINED AND EXPLAINED]]></title>
            <link>https://medium.com/@odunzechidubem73/uml-defined-and-explained-865325ac1810?source=rss-2ce7bbfc3e0d------2</link>
            <guid isPermaLink="false">https://medium.com/p/865325ac1810</guid>
            <category><![CDATA[uml-diagrams]]></category>
            <category><![CDATA[uml-tool]]></category>
            <category><![CDATA[lucidchart]]></category>
            <dc:creator><![CDATA[Chidubem Odunze (F)]]></dc:creator>
            <pubDate>Sat, 27 Jan 2024 07:13:28 GMT</pubDate>
            <atom:updated>2024-01-27T09:00:10.738Z</atom:updated>
            <content:encoded><![CDATA[<p>UML is the acronym for Unified Modeling Language. It is a general-purpose, developmental modeling language used for creating object-oriented documentation models for any software system present in the real world in the field of software engineering to provide a better way of visualizing the design of a program or system.</p><h3>UML overview</h3><p>The initial driving force behind the development of UML was to standardize different software design notation systems and methodologies. Rational Software began work on it in 1994 and continued until 1996.</p><p>Since then the Object Management Group (OMG), which accepted UML as a standard in 1997, has been responsible for maintaining it. The International Organization for Standardization (ISO) also published UML in 2005 as an approved ISO standard. Since then, the standard has gone through frequent revisions to reflect the most recent UML revision.</p><h3>UML versions</h3><p>Since UML became a standard in 1997, the Object Management Group has been in charge of maintaining it.</p><p>UML was given ISO standard status by the International Organization for Standardization in 2005 and it is employed by a number of industries to build object-oriented models.</p><p>The various UML versions includes:</p><ul><li>1.1 — November 1997 (Object Management Group adopted UML. This was the first original UML version).</li><li>1.3 — March 2000	(The old model underwent a minor upgrade, with major adjustments made to the semantics, notations, and meta-models of UML).</li><li>1.4 — September 2001 (The UML underwent a significant change during this time. It expanded UML by offering a number of extensions. In diagrams, visibility, artifacts, and stereotypes were introduced).</li><li>1.5 — March 2003	(The UML now includes features like procedures and data flow mechanisms).</li><li>1.4.2 — January 2005 (UML was accepted as a standard by ISO).</li><li>2.0 — August 2005 (The UML now includes more diagrams, such as those for objects, packages, timing, and interactions. The activity and sequence diagrams have new features. Communication diagram has replaced collaboration diagram as its name. Multiple features and changes were introduced in the existing diagrams).</li><li>2.1 — April 2006 (Corrections were made to the UML 2.0).</li><li>2.1.1 — February 2007 (Upgrades were introduced in the UML 2.1).</li><li>2.1.2 — November 2007	(UML 2.1.1 was redefined).</li><li>2.2 — February 2009 (UML 2.1.1 was redefined).</li><li>2.3 — May 2010	(Minor alterations were made to the component diagrams and UML 2.2 as well).</li><li>2.4.1 — August 2011 (Bugs in UML 2.1.2 were fixed).</li><li>2.5 — June 2015 (	UML 2.4.1 was updated with a few small adjustments. More simplicity was added to UML than previously. We introduced quick operation and the creation of more powerful models. Older features were removed. Models and templates were dropped as supporting constructions).</li></ul><p>The most recent version of UML is 2.5.1, which was made available in December 2017.</p><h3>UML Diagrams</h3><p>A model that describes a component of a system is a UML diagram. It is the output of the Unified Modeling Language with a visual depiction of items, classes and their connections. It is used to specify a system’s functionality or design.</p><p>To ensure that the viewer can quickly grasp a diagram, it must be clear and concise.</p><p>UML diagrams are divided into 3 different categories such as:</p><ol><li>Structural diagram: A static picture of a system is represented by structural diagrams. It represents a component of a system that contributes to the system’s overall structure. A structural diagram of the system displays many. It includes the following: Class diagram, Object diagram, Package diagram, Component diagram, Deployment diagram.</li><li>Behavioral diagram: Behavioral diagrams are UML diagrams that deal with the moving or dynamic components of the system. It includes the following: Activity diagram, Use case diagram, State machine diagram.</li><li>Interaction diagram: is a subset of behavioral diagrams. It is employed to depict the movement of different use case components within a system. Using interaction diagrams, you can depict how two entities interact and how data moves between them. It includes the following: Timing diagram, Sequence diagram<br>M, Collaboration diagram.</li></ol><h3>Tools/Softwares used for UML</h3><p>Here are some tools used in creating UML models. Some can be installed in the desktop while others are used online.</p><ul><li>Lucidchart</li><li>Draw. io</li><li>FigJam (Figma)</li><li>Microsoft Visio</li><li>Moqups</li><li>Edraw Max</li><li>StarUML</li><li>UML Designer</li><li>ConceptDraw</li><li>Umbrello</li></ul><p>There are still a lot more tools on the internet aside these ones I mentioned. You can as well check them out to find the one that suits you most. For me, I prefer LucidChart.</p><h3>Why do I prefer LucidChart</h3><ol><li>It does more than just drawing and connecting shapes : You’re better off using Lucidchart’s drag-and-drop shapes, dynamic formatting tools and customizable templates for your more intricate or complex diagrams.</li><li>User-friendly diagramming for every user : With logical guidelines, grid lines, and a handy feature-find function, LucidChart is designed for users of all skill levels.</li><li>Collaborative tools that enhance communication : LucidChart allows multiple users to update and comment on diagrams simultaneously. While some other tools don’t make for shape-shape specific comments, which makes it difficult to tell which particular user has made updates.</li><li>Ideal for teams and enterprise users: By offering a variety of security options such as domain management, specialized support and simple license provisioning, LucidChart better safeguards your data while some other tools lacks the security that the most enterprise require.</li></ol><p>Below is a diagram representation of Learnable Frontend Developer Roadmap describing the progression of the internship programs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C4nGAU2DAmIP686q3xILMA.png" /><figcaption>UML Diagram</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=865325ac1810" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[JavaScript as a programming language with it’s core features and attributes]]></title>
            <link>https://medium.com/@odunzechidubem73/javascript-as-a-programming-language-with-its-core-features-and-attributes-6ca753d01062?source=rss-2ce7bbfc3e0d------2</link>
            <guid isPermaLink="false">https://medium.com/p/6ca753d01062</guid>
            <dc:creator><![CDATA[Chidubem Odunze (F)]]></dc:creator>
            <pubDate>Sun, 21 Jan 2024 22:40:45 GMT</pubDate>
            <atom:updated>2024-01-27T09:03:49.928Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z_XRp4DaeSUWZNpRqDO-Jw.png" /></figure><p>JavaScript is a high-level, versatile, and dynamic programming language primarily known for its use in web development. <br>It is originally designed to make web pages interactive by running scripts on the client side and used for creating dynamic, interactive, and responsive user interfaces on websites.</p><h3>JavaScript core features includes:</h3><ol><li>Dynamic Typing: Variables are dynamically typed, allowing for flexibility in assigning different types.<br>Arrow function.</li><li>DOM Manipulation: JavaScript interacts with the Document Object Model (DOM) to manipulate and update web page content dynamically.</li><li>Arrow Functions: A concise syntax for writing functions, particularly useful for short, anonymous functions.</li><li>Template Literals: Allows embedding expressions inside string literals, improving readability and enabling multiline strings.</li><li>Closures: Functions can retain access to variables from their outer scope even after the outer function has finished execution.</li><li>Prototypal Inheritance: Objects can inherit properties directly from other objects, forming a prototype chain.</li><li>Event-Driven Programming: Commonly used for handling user interactions and events in web applications.</li><li>Asynchronous Programming: Supports asynchronous operations through callbacks, Promises, and the Async/Await syntax. and so on.</li></ol><h3>And its core attributes includes:</h3><ol><li>Var, let, and const Declarations: Different ways to declare variables with varying scoping rules and immutability.</li><li>Global Object: Provides a global namespace for variables and functions.</li><li>this Keyword: Refers to the context in which a function is executed, often determined by how the function is called.</li><li>Modules: Support for organizing code into reusable and maintainable modules, promoting modularity in JavaScript applications.</li><li>Promises and Async/Await: Mechanisms for handling asynchronous operations in a more readable and synchronous-like manner.</li><li>Hoisting: Variable and function declarations are moved to the top of their containing scope during the compilation phase.</li></ol><p>Lets stop here for now. We continue another day.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6ca753d01062" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Difference between var, let and const]]></title>
            <link>https://medium.com/@odunzechidubem73/difference-between-var-let-and-const-7db5afd5a623?source=rss-2ce7bbfc3e0d------2</link>
            <guid isPermaLink="false">https://medium.com/p/7db5afd5a623</guid>
            <category><![CDATA[variables]]></category>
            <dc:creator><![CDATA[Chidubem Odunze (F)]]></dc:creator>
            <pubDate>Fri, 19 Jan 2024 17:32:12 GMT</pubDate>
            <atom:updated>2024-01-19T18:00:04.703Z</atom:updated>
            <content:encoded><![CDATA[<p>In programming, variables are used to store data values. JavaScript uses the keywords var , let and const to declare variables and then an equal sign is used to assign values to these variables.</p><p>In this article we will see the difference between these 3 keywords and what makes them unique.</p><ol><li>var: is the keyword that tells JavaScript you’re declaring a variable. It was the primary way to declare variables in JavaScript before the introduction of let and const in 2015. The scope of a var variable is either the function in which it is declared (function scope) or the global scope if it’s declared outside any function. Variables declared with var can be redeclared in the same name in the same scope.</li><li>let: let was introduced in ECMAScript 6 (ES6) in 2015 to address some of the issues with var. The scope of a let variable is limited to the block in which it is declared (block scope), which is typically denoted by a set of curly braces { }. Variables declared by let are only available inside the block where they’re defined.</li><li>const: was also introduced in ES6 in 2015 and stands for &quot;constant.&quot; Variables declared with const are block-scoped, just like let, but they have an additional characteristic - their value cannot be reassigned once it has been assigned. In other words, const variables are immutable.</li></ol><h4>Things to Note:</h4><ul><li>The var keyword was used in all JavaScript code from 1995 to 2015.</li><li>The let and const keywords were added to JavaScript in 2015.</li><li>The var keyword should only be used in code written for older browsers.</li></ul><h4>When to Use var, let, or const?</h4><ul><li>Always declare variables.</li><li>Always use const if the value should not be changed.</li><li>Always use const if the type should not be changed (Arrays and Objects).</li><li>Only use let if you can’t use const.</li><li>Only use var if you MUST support old browsers.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7db5afd5a623" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>