<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Keerthana M</title>
    <description>The latest articles on DEV Community by Keerthana M (@keerthana_2004).</description>
    <link>https://dev.to/keerthana_2004</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4022882%2Fa92130ce-1638-419d-a844-6671038abc09.jpg</url>
      <title>DEV Community: Keerthana M</title>
      <link>https://dev.to/keerthana_2004</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/keerthana_2004"/>
    <language>en</language>
    <item>
      <title>Data Types</title>
      <dc:creator>Keerthana M</dc:creator>
      <pubDate>Thu, 09 Jul 2026 14:37:18 +0000</pubDate>
      <link>https://dev.to/keerthana_2004/data-types-and-variables-1bk4</link>
      <guid>https://dev.to/keerthana_2004/data-types-and-variables-1bk4</guid>
      <description>&lt;p&gt;&lt;strong&gt;Data types&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A data type refers to the kind of value a variable holds.&lt;/p&gt;

&lt;p&gt;JavaScript is a dynamically typed language, meaning the data type is associated with the value, not the variable itself.&lt;/p&gt;

&lt;p&gt;For example, a variable that currently holds a number can later be reassigned to a string or an object.&lt;/p&gt;

&lt;p&gt;JavaScript broadly classifies data types into two categories:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;primitive&lt;/li&gt;
&lt;li&gt;nonprimitives&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Primitive Data Types (7)
&lt;/h2&gt;

&lt;p&gt;Primitives are immutable and stored by value.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Number:&lt;/strong&gt; Represents numeric values, whether integer or floating-point. &lt;strong&gt;Examples:&lt;/strong&gt; 42, 3.14, NaN.&lt;br&gt;
&lt;strong&gt;String:&lt;/strong&gt; Represents text, enclosed in single quotes ' ', double quotes " ", or backticks &lt;code&gt;&lt;/code&gt;.&lt;br&gt;
&lt;strong&gt;Boolean:&lt;/strong&gt; Represents logical truth values — true or false. When coerced to numbers, they become 1 and 0 respectively. Commonly used for conditional checks and control flow.&lt;br&gt;
&lt;strong&gt;Undefined:&lt;/strong&gt; Indicates a declared variable that has not been assigned a value. Conceptually borrowed from Scheme.&lt;br&gt;
&lt;strong&gt;Null:&lt;/strong&gt; Represents the intentional absence of any object value (an “empty” reference). Historically inspired by Java’s null.&lt;br&gt;
&lt;strong&gt;BigInt:&lt;/strong&gt; Used for integers larger than Number.MAX_SAFE_INTEGER (2^53 - 1), declared with an n suffix — e.g., 9007199254740993n.&lt;br&gt;
&lt;strong&gt;Symbol:&lt;/strong&gt; Represents unique and immutable identifiers, often used as object keys — no two symbols are ever equal.&lt;/p&gt;

&lt;h2&gt;
  
  
  Non-Primitive (Reference) Data Types
&lt;/h2&gt;

&lt;p&gt;Non-primitive types are mutable and stored by reference.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Object:&lt;/strong&gt; A collection of key–value pairs, where keys are strings or symbols.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Example: { name: "Priyasha", age: 25 }&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Array:&lt;/strong&gt; An ordered list of elements. Arrays in JavaScript are dynamic and actually specialized objects.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Example: [1, 2, 3]&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>webdev</category>
      <category>beginners</category>
      <category>datatype</category>
    </item>
  </channel>
</rss>
