<?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: Claire Charles</title>
    <description>The latest articles on DEV Community by Claire Charles (@claire__charles).</description>
    <link>https://dev.to/claire__charles</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F493053%2F8896331e-5266-42e0-9bdd-45e19e12dcf8.png</url>
      <title>DEV Community: Claire Charles</title>
      <link>https://dev.to/claire__charles</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/claire__charles"/>
    <language>en</language>
    <item>
      <title>Data Types: The JavaScript Structure</title>
      <dc:creator>Claire Charles</dc:creator>
      <pubDate>Thu, 17 Jul 2025 18:20:09 +0000</pubDate>
      <link>https://dev.to/claire__charles/data-types-the-javascript-structure-35b0</link>
      <guid>https://dev.to/claire__charles/data-types-the-javascript-structure-35b0</guid>
      <description>&lt;p&gt;JavaScript, at its core, works with variables and data types just as binary code does with just 1s and 0s. These are quite essential for understanding and manipulating information within our code. In this article, we will be focusing on the various data types in JavaScript.&lt;/p&gt;

&lt;h2&gt;
  
  
  What are Data Types
&lt;/h2&gt;

&lt;p&gt;It's as simple as it sounds-- Data types are the "Types of data".&lt;/p&gt;

&lt;p&gt;As defined in Computer Science, it is a classification that defines the types of values variables can hold and how the computer should interpret them. In JavaScript, these data types could be classified into 2 main groups:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Primitive&lt;/li&gt;
&lt;li&gt;Non-Primitive&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;LET'S GET INTO IT!&lt;/p&gt;

&lt;h2&gt;
  
  
  Primitive data types
&lt;/h2&gt;

&lt;p&gt;These are simple and immutable, meaning their value cannot be changed after creation. There are 7 primitive data types in JavaScript:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;String&lt;/li&gt;
&lt;li&gt;Number&lt;/li&gt;
&lt;li&gt;Boolean&lt;/li&gt;
&lt;li&gt;Undefined&lt;/li&gt;
&lt;li&gt;Null&lt;/li&gt;
&lt;li&gt;Symbol&lt;/li&gt;
&lt;li&gt;BigInt&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  String
&lt;/h3&gt;

&lt;p&gt;The string type is used to represent a sequence of characters, which could be names or special messages. They are declared using single or double quotes or backticks. Strings have some properties, such as indexability and immutability, meaning that each character in a string can be accessed by its numerical index (starting from 0).&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;let name = "Claire";
let age = "5";

console.log(name); // Claire
console.log("My name is " + name + "." + " I am " + age); // My name is Claire. I am 5

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can On the last line of code, we have a &lt;code&gt;+&lt;/code&gt; character used after the string; this can be used to join another value to your string -- It's called Concatenation.&lt;/p&gt;

&lt;h3&gt;
  
  
  Number
&lt;/h3&gt;

&lt;p&gt;The number type is used to represent both integer(whole number) and floating-point numbers (decimal). They can be used to perform various mathematical operations. &lt;br&gt;
There is a range of numbers in JavaScript that is defined by Numbers.MAX_VALUE and Numbers.MIN_VALUE, which represents the largest and smallest numbers. Outside the range of what's possible, JavaScript offers some Special number values like:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Infinity: A positive number greater than the maximum value in JavaScript&lt;/li&gt;
&lt;li&gt;-Infinity: A negative number less than the minimum value in JavaScript&lt;/li&gt;
&lt;li&gt;NAN: This means Not a Number. Represents a computational error for when an operation cannot be expressed as a number.
&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;let subject1 = 12;
console.log(subject1) // 12

let subject2 = 1.3;
console.log(subject2) // 1.3

let result = 12 / 0;
console.log(result) // Infinity

let subject3 = 'Claire' / 2;
console.log(subject3) // NAN

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;h3&gt;
  
  
  Boolean
&lt;/h3&gt;

&lt;p&gt;The boolean type represents two possible values: True or False.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;let isStudent = true;
console.log(isStudent) // true

let isStudentRich = false;
console.log(isStudentRich) // false

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  Guiding rules for Boolean:
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;Strings: An empty string ("") will be converted to false, and any other string will be converted to true.&lt;/li&gt;
&lt;li&gt;Numbers: Zero (0) and NaN (Not a Number) will be converted to false, and any other number will be converted to true.&lt;/li&gt;
&lt;li&gt;Objects: All objects, including arrays and functions, will be converted to true.&lt;/li&gt;
&lt;li&gt;Undefined: Undefined will be converted to false.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Undefined
&lt;/h3&gt;

&lt;p&gt;The undefined type represents a variable that has been declared but not assigned a value. It is used to indicate the absence of a value&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;let webBridge;
console.log(webBridge) //undefined

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Null
&lt;/h3&gt;

&lt;p&gt;The Null type is used to represent an empty or unknown value. This is used intentionally&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;let money = null;
console.log(money) //null

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Symbol
&lt;/h3&gt;

&lt;p&gt;This is a unique value used as an identifier for object properties. They help create unique values in objects, preventing conflicts with other properties.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;let name = Symbol("Claire");
let name2 = Symbol("Claire");
console.log(name == name2); //false

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can see this code has the same values passed to it, but they do not equal each other.&lt;/p&gt;

&lt;h3&gt;
  
  
  BitInt
&lt;/h3&gt;

&lt;p&gt;BigInt is a type that represents a whole number greater than the JavaScript maximum integer&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;let b = BigInt("0b1010101001010101001111111111111111");
console.log(b); // 11430854655n

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Non-Primitive Types
&lt;/h2&gt;

&lt;p&gt;There are complex data structures that hold multiple values and more complex data. Unlike primitive types that directly store actual values, non-primitive types store references to the values.&lt;/p&gt;

&lt;h3&gt;
  
  
  Object:
&lt;/h3&gt;

&lt;p&gt;An object is a data structure used to store data in key-value pairs. They are the fundamental blocks of JavaScript, as nearly everything used in the language is an object-- even functions.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;let web3Bridge = {
    type: "Web3 Advance",
    name: "Claire"
}
console.log(web3Bridge.type) // Web3 Advance


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Arrays
&lt;/h3&gt;

&lt;p&gt;An array is a special type of object used for storing an ordered collection of values, usually indexed by numbers.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;let members = ["Claire", "Joy", "Emmanuel"];
console.log(members); //  ["Claire", "Joy", "Emmanuel"]


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Functions
&lt;/h3&gt;

&lt;p&gt;A function is a reusable block of code designed to perform a particular task.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;function addNumbers (num1, num2) {
    return num1 + num2;
}

console.log(addNumbers(4, 4)); // 8
console.log(addNumbers(3, 8)); // 11
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>webdev</category>
      <category>programming</category>
      <category>javascript</category>
    </item>
    <item>
      <title>Impact of tech on kids/teens</title>
      <dc:creator>Claire Charles</dc:creator>
      <pubDate>Sun, 23 Oct 2022 18:37:10 +0000</pubDate>
      <link>https://dev.to/claire__charles/impact-of-tech-on-kidsteens-1p7p</link>
      <guid>https://dev.to/claire__charles/impact-of-tech-on-kidsteens-1p7p</guid>
      <description>&lt;p&gt;A lot of kids these days have broken their way into the tech ecosystem and it has made a huge impact in their lives. In this article, I will be sharing inspiring stories of kids who have bridged their way into the tech ecosystem.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Impact of tech on kids
&lt;/h2&gt;

&lt;p&gt;Tech has played a huge impact on the life of so many kids/teens. These impacts include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Creativity and freedom of expression&lt;/li&gt;
&lt;li&gt;Socialization and relationship building&lt;/li&gt;
&lt;li&gt;Independence and empowerment&lt;/li&gt;
&lt;li&gt;Problem solving and perseverance&lt;/li&gt;
&lt;li&gt;Entrepreneurial spirit&lt;/li&gt;
&lt;li&gt;Learning enhancement&lt;/li&gt;
&lt;li&gt;In-demand job prep&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Here is the story of a list of kids who are succeeding in the tech ecosystem. &lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F01vc6vpgnxqepkrhl8aj.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F01vc6vpgnxqepkrhl8aj.gif" alt="Gif of age is just a number" width="640" height="640"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Gitanjali Rao
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fe009qrhguph3utv7d6z3.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fe009qrhguph3utv7d6z3.jpg" alt="Gitanjali Rao" width="400" height="400"&gt;&lt;/a&gt;&lt;br&gt;
Gitanjali Rao is a 16 years old author, speaker, community volunteer, science enthusiast, STEM promoter, and board member. She is a youth advocate for UNICEF. When Rao was younger, she heard of the water flint crisis and became interested in ways to measure the lead content in water. This led to her developing a device called Tethys based on carbon nanotubes that could send water quality information via Bluetooth. Rao developed an app 'Kindly' that uses Artificial Intelligence which prevents cyberbullying. She has won a lot of awards and challenges like Discovery Education 3M Young Scientist Challenge, United States Environmental Protection Agency President's Environmental Youth Award, Laureate of the Young Activists Summit at UN Geneva. IShe is hence, the first person to receive TIME magazine's Kid of the Year designation.&lt;/p&gt;

&lt;h3&gt;
  
  
  Opemipo Disu
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fred3er6hza9fsp2w0vq8.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fred3er6hza9fsp2w0vq8.jpg" alt="Opemipo Disu" width="399" height="399"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Opemipo Disu is a 17 years old web developer, 2020 IBM Champion, JamStack developer, Agility CMS advocate. Opemipo is passionate about helping people with his available resources, by making the web more accessible via Youtube, Linkedln, and Instagram, He started his tech career at the age of 11, his Dad got him all the tools he needed for work back then. He loves making differences. He is currently working on a project to help stop cyberbullying. In 2019, Opemipo was nominated to be an IBM champion for Developers in 2020 and was later selected in January 2020. He works with languages under web development, software development, and AI technologies. He had his very first Laptop at the age of 5 and started contributing to tech communities at the age of 11. Since his bridge into the tech ecosystem, he has achieved a lot, He has inspired 10 thousand kids on 5 different continents around the world, he is widely recognized by the IBM community, He has won 5 awards since his break into tech as a developer advocate Apart from that, He has spoken at over 50 dev conferences.&lt;/p&gt;

&lt;h3&gt;
  
  
  Bereket Semagn
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1o4cyg01l6nte1p1n570.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1o4cyg01l6nte1p1n570.jpeg" alt="Bereket Semagn" width="400" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Bereket Semagn is a 14 years old developer, designer, and entrepreneur who has a passion for AI and how it can change the future moving forward. He loves creating products that help teams and individuals become productive and engaged. He started his tech journey in 2020 and since then he has been publicly noticed. He created a Lunar theme for VsCode which had +3k installations. he has built over 10 products in 2021.&lt;/p&gt;

&lt;h3&gt;
  
  
  Lella Violet Halloum
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdhpwokpbrbibglswdojp.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdhpwokpbrbibglswdojp.jpg" alt="Lella Violet" width="800" height="1096"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Lella is a 18 years old, British Lebanese, and is passionate about ‘tech for good’ &amp;amp; closing the digital divide. She is a frequent speaker, thought leader, and advocate for young people. She brings her personal mission to life by engaging thousands of students globally through tech events and social media and, with IBM's support, she creates student-led webinars that are entirely for, with, and by youth. Through her work, Lella strides to diversify the industry by creating more opportunities for young people, particularly underserved &amp;amp; underrepresented communities and those with non-traditional academic backgrounds, highlighting the important role young people play in tech and wider society. Lella has achieved a lot in the tech industry, from winning the 2021 Diana Award to winning Women of the Future Awards 2021: Young Star, to becoming the IBM champion.&lt;/p&gt;

&lt;h3&gt;
  
  
  Samaria Mehta
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fe37u2ezliczij52idob5.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fe37u2ezliczij52idob5.jpg" alt="Samaria Meta" width="800" height="533"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Samaira Mehta is an American coder and inventor. She is the founder and chief executive officer of CoderBunnyz. She began coding when she was 6 years old with her father as her teacher. She created the board game CoderBunnyz, with the help of her little brother, to teach other children how to code. Samaria speaks at workshops and conferences including at Microsoft, Intel, and Google. She spoke at the 2019 C2 Montréal Conference. Samaria aims to eliminate gender bias and increase the number of women in engineering. she has achieved a lot like the $2,500 second-place prize at Think Tank Learning's Pitchfest. She received a letter from former first lady Michelle Obama.&lt;/p&gt;

&lt;h3&gt;
  
  
  Tanmay Bakshi
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9zlyum4pn7nmjldoi9bm.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9zlyum4pn7nmjldoi9bm.jpg" alt="Tanmay Bakshi" width="400" height="400"&gt;&lt;/a&gt;&lt;br&gt;
Tanmay Bakshi is a 18 years old Canadian author, Machine Learning Developer, TED &amp;amp; Keynote Speaker, and media personality. Tanmay has been coding since he was 5 years old. To date, he has addressed over 200,000 people at international conferences, speaking about Computational Thinking, The 4th Industrial Revolution, Machine Learning, and Innovation. His goal to reach out to 100,000 aspiring coders to help them learn how to code has him holding countless workshops and seminars in schools and universities across the globe. Since his bridge into the tech ecosystem, he has won awards like the Twilio Doer Award, Knowledge Ambassador Award, Life Mentor Award, he’s a Global Goodwill Ambassador at LinkedIn, and an IBM Champion for Cloud.&lt;/p&gt;

&lt;h3&gt;
  
  
  Diana Ashktorab
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fedtv22ztrwdtxhnqa1fx.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fedtv22ztrwdtxhnqa1fx.jpg" alt="Diana Ashktorab" width="800" height="400"&gt;&lt;/a&gt;&lt;br&gt;
Diana is an 9-year-old CodeNewbie who loves AI. Her goal is to create a robot someday to do children's homework so they can use their time for more creative stuff. She started her coding journey in August 2020, with Scratch and since then she has made a lot of amazing games.&lt;/p&gt;

&lt;h3&gt;
  
  
  Claire Charles
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdy0zedrty6ljsrfvfe2o.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdy0zedrty6ljsrfvfe2o.png" alt="Claire Carles" width="800" height="1065"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Yes, this is me, I am a 14 years old web3 developer, technical writer, and open-source contributor. I am passionate about contributing to open-source, public speaking, and coding. I began my coding journey in April 2020, and tho I haven't achieved much but I have a goal to bring more people into the tech ecosystem and to show them that they can achieve a lot at a young age.&lt;/p&gt;

</description>
      <category>devs</category>
      <category>kids</category>
    </item>
  </channel>
</rss>
