<?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: QUBE</title>
    <description>The latest articles on DEV Community by QUBE (@qube_7).</description>
    <link>https://dev.to/qube_7</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%2F3788659%2F217e6e00-253b-4eff-97d5-ec3eeda6a1ef.png</url>
      <title>DEV Community: QUBE</title>
      <link>https://dev.to/qube_7</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/qube_7"/>
    <language>en</language>
    <item>
      <title>Callback Function in JavaScript</title>
      <dc:creator>QUBE</dc:creator>
      <pubDate>Wed, 15 Apr 2026 09:17:49 +0000</pubDate>
      <link>https://dev.to/qube_7/callback-function-in-javascript-1ejn</link>
      <guid>https://dev.to/qube_7/callback-function-in-javascript-1ejn</guid>
      <description>&lt;ul&gt;
&lt;li&gt;&lt;p&gt;A &lt;strong&gt;callback function&lt;/strong&gt; in javascript is a function passed as an arguement into another function and executed later.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The benefit of using a callback function is that you can wait for the result of a previous function call and then execute another function call.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;How Callbacks Work&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Passing the Function: The function you want to run after some operation is passed as an argument to another function.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Executing the Callback: The main function executes the callback function at the appropriate time. This can be after a delay, once a task is complete, or when an event occurs.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Types of Callbacks:&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; Asynchronous Callbacks&lt;/li&gt;
&lt;/ol&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Asynchronous callbacks are executed at a later time, allowing the main program to continue running without waiting.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;This is essential for preventing the application from freezing during long-running tasks like network requests.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;ol&gt;
&lt;li&gt;Synchronous Callbacks&lt;/li&gt;
&lt;/ol&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Synchronous Callbacks are executed immediately within the outer function, blocking further operations until completion.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Array methods like map(), filter(), and forEach() use synchronous callbacks.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Example For Callback Function:&lt;/p&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%2Fag7akfro5x4w6mmm1v7l.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%2Fag7akfro5x4w6mmm1v7l.png" alt=" " width="800" height="184"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Avoid callbacks when:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Code becomes nested and unreadable (use Promises or async/await).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;You need error handling in asynchronous operations (Promises are better).&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;References:&lt;/strong&gt;&lt;/p&gt;


&lt;div class="crayons-card c-embed text-styles text-styles--secondary"&gt;
    &lt;div class="c-embed__content"&gt;
        &lt;div class="c-embed__cover"&gt;
          &lt;a href="https://www.freecodecamp.org/news/how-to-use-callback-functions-in-javascript/" class="c-link align-middle" rel="noopener noreferrer"&gt;
            &lt;img alt="" src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fwww.freecodecamp.org%2Fnews%2Fcontent%2Fimages%2F2024%2F07%2FCallback_functions_JavaScript.png" height="450" class="m-0" width="800"&gt;
          &lt;/a&gt;
        &lt;/div&gt;
      &lt;div class="c-embed__body"&gt;
        &lt;h2 class="fs-xl lh-tight"&gt;
          &lt;a href="https://www.freecodecamp.org/news/how-to-use-callback-functions-in-javascript/" rel="noopener noreferrer" class="c-link"&gt;
            How to Use Callback Functions in JavaScript
          &lt;/a&gt;
        &lt;/h2&gt;
          &lt;p class="truncate-at-3"&gt;
            When you're building dynamic applications with JavaScript that display real-time data – like a weather app or live sports dashboard – you'll need a way to automatically fetch new data from an external source without disrupting the user experience. Yo...
          &lt;/p&gt;
        &lt;div class="color-secondary fs-s flex items-center"&gt;
            &lt;img alt="favicon" class="c-embed__favicon m-0 mr-2 radius-0" src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn.freecodecamp.org%2Funiversal%2Ffavicons%2Ffavicon.ico" width="48" height="48"&gt;
          freecodecamp.org
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;



&lt;div class="crayons-card c-embed text-styles text-styles--secondary"&gt;
    &lt;div class="c-embed__content"&gt;
        &lt;div class="c-embed__cover"&gt;
          &lt;a href="https://www.geeksforgeeks.org/javascript/javascript-callbacks/" class="c-link align-middle" rel="noopener noreferrer"&gt;
            &lt;img alt="" src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmedia.geeksforgeeks.org%2Fwp-content%2Fcdn-uploads%2Fgfg_200x200-min.png" height="200" class="m-0" width="200"&gt;
          &lt;/a&gt;
        &lt;/div&gt;
      &lt;div class="c-embed__body"&gt;
        &lt;h2 class="fs-xl lh-tight"&gt;
          &lt;a href="https://www.geeksforgeeks.org/javascript/javascript-callbacks/" rel="noopener noreferrer" class="c-link"&gt;
            JavaScript Callbacks - GeeksforGeeks
          &lt;/a&gt;
        &lt;/h2&gt;
          &lt;p class="truncate-at-3"&gt;
            Your All-in-One Learning Portal: GeeksforGeeks is a comprehensive educational platform that empowers learners across domains-spanning computer science and programming, school education, upskilling, commerce, software tools, competitive exams, and more.
          &lt;/p&gt;
        &lt;div class="color-secondary fs-s flex items-center"&gt;
            &lt;img alt="favicon" class="c-embed__favicon m-0 mr-2 radius-0" src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmedia.geeksforgeeks.org%2Fwp-content%2Fcdn-uploads%2Fgfg_favicon.png" width="32" height="32"&gt;
          geeksforgeeks.org
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;


</description>
      <category>beginners</category>
      <category>javascript</category>
      <category>programming</category>
      <category>webdev</category>
    </item>
    <item>
      <title>//Object Constructors in JavaScript//</title>
      <dc:creator>QUBE</dc:creator>
      <pubDate>Wed, 08 Apr 2026 08:27:01 +0000</pubDate>
      <link>https://dev.to/qube_7/object-constructors-in-javascript-1cnh</link>
      <guid>https://dev.to/qube_7/object-constructors-in-javascript-1cnh</guid>
      <description>&lt;p&gt;In JavaScript, an Object Constructor is a special function used to create multiple objects with the same structure (properties and methods). It’s useful when you want to create many similar objects (like users, cars, teams, etc.).&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;In the constructor function, this has no value.
The value of this will become the new object when a new object is created.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;this&lt;/strong&gt; in Objects:&lt;/p&gt;

&lt;p&gt;The this keyword refers to an object.&lt;br&gt;
In JavaScript, this is used to access the object that is calling a method.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Example:&lt;/strong&gt;&lt;/p&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%2Fnp4wg17909e87psxbhno.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%2Fnp4wg17909e87psxbhno.png" alt=" " width="800" height="189"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Instead of creating seperate objects ,we can use Object Constructors for efficiency.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;References:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;
&lt;div class="crayons-card c-embed text-styles text-styles--secondary"&gt;
    &lt;div class="c-embed__content"&gt;
      &lt;div class="c-embed__body flex items-center justify-between"&gt;
        &lt;a href="https://www.w3schools.com/js/js_object_constructors.asp" rel="noopener noreferrer" class="c-link fw-bold flex items-center"&gt;
          &lt;span class="mr-2"&gt;w3schools.com&lt;/span&gt;
          

        &lt;/a&gt;
      &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;


</description>
    </item>
    <item>
      <title>//Objects in JavaScript//</title>
      <dc:creator>QUBE</dc:creator>
      <pubDate>Mon, 06 Apr 2026 18:08:06 +0000</pubDate>
      <link>https://dev.to/qube_7/objects-in-javascript-3fhj</link>
      <guid>https://dev.to/qube_7/objects-in-javascript-3fhj</guid>
      <description>&lt;p&gt;An object is a dynamic data structure that stores related data as key-value pairs, where each key uniquely identifies its value.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;The values of properties can be primitives, objects, or functions (known as methods when defined inside an object).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Objects are mutable and dynamic properties can be added, modified, or deleted at any time.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Objects allow data grouping and encapsulation, making it easier to manage related information and behaviour together.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;1. Creating Object Using Object Literal&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The object literal syntax allows you to define and initialize an object with curly braces {}, setting properties as key-value pairs.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;2.Basic Operations on JavaScript Objects&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;CRUD Operations in Objects&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Creating an Object in JavaScript:&lt;/strong&gt;&lt;/p&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%2Flib18ejwjlcsefr6a266.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%2Flib18ejwjlcsefr6a266.png" alt=" " width="800" height="184"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Read through Objects:&lt;/strong&gt;&lt;/p&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%2Fs0omfrvzm01cpo1k8gyp.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%2Fs0omfrvzm01cpo1k8gyp.png" alt=" " width="800" height="260"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Updating Values in Objects:&lt;/strong&gt;&lt;/p&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%2F7xxruk3blrwsvvg5m794.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%2F7xxruk3blrwsvvg5m794.png" alt=" " width="800" height="269"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Deleting Values in Objects:&lt;/strong&gt;&lt;/p&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%2F4zqsban0mpm3jkgmfcly.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%2F4zqsban0mpm3jkgmfcly.png" alt=" " width="800" height="272"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;References:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;
&lt;div class="crayons-card c-embed text-styles text-styles--secondary"&gt;
    &lt;div class="c-embed__content"&gt;
        &lt;div class="c-embed__cover"&gt;
          &lt;a href="https://www.geeksforgeeks.org/javascript/objects-in-javascript/" class="c-link align-middle" rel="noopener noreferrer"&gt;
            &lt;img alt="" src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmedia.geeksforgeeks.org%2Fwp-content%2Fcdn-uploads%2Fgfg_200x200-min.png" height="200" class="m-0" width="200"&gt;
          &lt;/a&gt;
        &lt;/div&gt;
      &lt;div class="c-embed__body"&gt;
        &lt;h2 class="fs-xl lh-tight"&gt;
          &lt;a href="https://www.geeksforgeeks.org/javascript/objects-in-javascript/" rel="noopener noreferrer" class="c-link"&gt;
            Objects in JavaScript - GeeksforGeeks
          &lt;/a&gt;
        &lt;/h2&gt;
          &lt;p class="truncate-at-3"&gt;
            Your All-in-One Learning Portal: GeeksforGeeks is a comprehensive educational platform that empowers learners across domains-spanning computer science and programming, school education, upskilling, commerce, software tools, competitive exams, and more.
          &lt;/p&gt;
        &lt;div class="color-secondary fs-s flex items-center"&gt;
            &lt;img alt="favicon" class="c-embed__favicon m-0 mr-2 radius-0" src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmedia.geeksforgeeks.org%2Fwp-content%2Fcdn-uploads%2Fgfg_favicon.png" width="32" height="32"&gt;
          geeksforgeeks.org
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;


</description>
    </item>
    <item>
      <title>//Functions in JavaScript//</title>
      <dc:creator>QUBE</dc:creator>
      <pubDate>Mon, 06 Apr 2026 06:28:41 +0000</pubDate>
      <link>https://dev.to/qube_7/functions-in-javascript-2ehk</link>
      <guid>https://dev.to/qube_7/functions-in-javascript-2ehk</guid>
      <description>&lt;p&gt;&lt;strong&gt;1. What are Functions?&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Functions or reusable code blocks designed for particular tasks&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Functions are executed when they are called or invoked&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Functions are fundamental in all programming languages&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Functions are defined with the function keyword:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;followed by the function name&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;followed by parentheses ( )&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;followed by brackets { }&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Sample Program using Function:&lt;/p&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%2Ffykiic979t7cocn9j172.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%2Ffykiic979t7cocn9j172.png" alt=" " width="800" height="206"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Calling Functions&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Functions are executed when they are called or invoked&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;You call a function by adding parentheses to its name: name()&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;3. Function Parameters&lt;/strong&gt; &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Parameters allow you to send values to a function&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Parameters are listed in parentheses in the function definition&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;4. Function Return Values&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;A function can return a value back to the code that called it&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The return statement is used to return a value from a function&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;5. Function Arguments&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Function parameters and arguments are distinct concepts&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Parameters are the names listed in the function definition&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Arguments are the values received by the function&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;References:&lt;br&gt;
&lt;/p&gt;
&lt;div class="crayons-card c-embed text-styles text-styles--secondary"&gt;
    &lt;div class="c-embed__content"&gt;
      &lt;div class="c-embed__body flex items-center justify-between"&gt;
        &lt;a href="https://www.w3schools.com/js/js_functions.asp" rel="noopener noreferrer" class="c-link fw-bold flex items-center"&gt;
          &lt;span class="mr-2"&gt;w3schools.com&lt;/span&gt;
          

        &lt;/a&gt;
      &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;


</description>
    </item>
    <item>
      <title>Array in JavaScript</title>
      <dc:creator>QUBE</dc:creator>
      <pubDate>Fri, 03 Apr 2026 07:47:00 +0000</pubDate>
      <link>https://dev.to/qube_7/array-in-javascript-a5m</link>
      <guid>https://dev.to/qube_7/array-in-javascript-a5m</guid>
      <description>&lt;ol&gt;
&lt;li&gt;In JavaScript, an array is an ordered collection of values that can store multiple data types (numbers, strings, objects, etc.) under a single variable name.&lt;/li&gt;
&lt;/ol&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Zero-Indexed: The first element is always at index 0, the second at 1, and so on.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Array elements are enclosed within square brackets.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;why we use array?&lt;/p&gt;

&lt;p&gt;for example, if we have a list of items storing the fruit in single variables could look like this:&lt;/p&gt;

&lt;p&gt;let fruit_1="mango";&lt;br&gt;
let fruit_2="apple";&lt;br&gt;
let fruit_3="orange";&lt;/p&gt;

&lt;p&gt;Here, we have only 3 fruits so we can declare like this but, what if we have 300 fruits? It's very hard to do in this method right.&lt;br&gt;
For this the solution is array.&lt;/p&gt;

&lt;p&gt;An array can hold many values under a single name, and you can access the values by referring to an index number.&lt;/p&gt;

&lt;p&gt;const fruits=['mango','apple','orange'];&lt;/p&gt;

&lt;p&gt;So this method is easier than the above. Here we declared 3 fruits names under a single varible.&lt;/p&gt;

&lt;p&gt;Example:&lt;br&gt;
  simple program to print failcount of the student,using array.&lt;/p&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%2Fna20yhzq5e3tyb4imx9x.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%2Fna20yhzq5e3tyb4imx9x.png" alt=" " width="800" height="270"&gt;&lt;/a&gt;****&lt;/p&gt;

&lt;p&gt;References:&lt;br&gt;
&lt;/p&gt;
&lt;div class="crayons-card c-embed text-styles text-styles--secondary"&gt;
    &lt;div class="c-embed__content"&gt;
      &lt;div class="c-embed__body flex items-center justify-between"&gt;
        &lt;a href="https://www.w3schools.com/Js/js_arrays.asp" rel="noopener noreferrer" class="c-link fw-bold flex items-center"&gt;
          &lt;span class="mr-2"&gt;w3schools.com&lt;/span&gt;
          

        &lt;/a&gt;
      &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;


</description>
      <category>beginners</category>
      <category>javascript</category>
      <category>programming</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Class &amp; Id in HTML</title>
      <dc:creator>QUBE</dc:creator>
      <pubDate>Wed, 01 Apr 2026 09:02:18 +0000</pubDate>
      <link>https://dev.to/qube_7/class-id-in-html-5h16</link>
      <guid>https://dev.to/qube_7/class-id-in-html-5h16</guid>
      <description>&lt;ol&gt;
&lt;li&gt;In HTML, the id and class attributes are used to identify and group elements, primarily for styling with CSS and manipulating with JavaScript. The key difference is that an id must be unique within a page, while a class can be used on multiple elements&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;class Attribute&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Must be unique to a single element in the HTML document.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Uses a hash symbol (#) (e.g., #header).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Higher specificity.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Only one id per element.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Can be used for anchor links (jump links) within a page&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;id Attribute&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Must be unique to a single element in the HTML document.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Uses a hash symbol (#) (e.g., #header).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Higher specificity.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Only one id per element.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Can be used for anchor links (jump links) within a page &lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
    </item>
    <item>
      <title>JavaScript Program For Prime Number Using Loop</title>
      <dc:creator>QUBE</dc:creator>
      <pubDate>Wed, 01 Apr 2026 08:45:11 +0000</pubDate>
      <link>https://dev.to/qube_7/javascript-program-for-prime-number-using-loop-1m26</link>
      <guid>https://dev.to/qube_7/javascript-program-for-prime-number-using-loop-1m26</guid>
      <description>&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%2Fipu3ac65ova0zzlwc0u1.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%2Fipu3ac65ova0zzlwc0u1.png" alt=" " width="800" height="287"&gt;&lt;/a&gt;&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%2F9yel2mf6r46b37xbh566.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%2F9yel2mf6r46b37xbh566.png" alt=" " width="800" height="280"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>📍Flowchart for simple looping programs.</title>
      <dc:creator>QUBE</dc:creator>
      <pubDate>Mon, 30 Mar 2026 08:39:20 +0000</pubDate>
      <link>https://dev.to/qube_7/flowchart-for-simple-looping-programs-2p21</link>
      <guid>https://dev.to/qube_7/flowchart-for-simple-looping-programs-2p21</guid>
      <description>&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%2Fsjg6c9ah2tlbxvi6csdg.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%2Fsjg6c9ah2tlbxvi6csdg.jpg" alt=" " width="800" height="1125"&gt;&lt;/a&gt;&lt;/p&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%2F89ra980t98w9b49zmoke.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%2F89ra980t98w9b49zmoke.jpg" alt=" " width="800" height="1168"&gt;&lt;/a&gt;&lt;/p&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%2F1mdpsx3wjrhftm8mc8ld.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%2F1mdpsx3wjrhftm8mc8ld.jpg" alt=" " width="800" height="1147"&gt;&lt;/a&gt;&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%2F3hvue2vlfgc8wjv8me9h.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%2F3hvue2vlfgc8wjv8me9h.jpg" alt=" " width="800" height="685"&gt;&lt;/a&gt;&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%2Fpuqtgmugugrjxd4ip72x.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%2Fpuqtgmugugrjxd4ip72x.jpg" alt=" " width="800" height="506"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Operators in JavaScript</title>
      <dc:creator>QUBE</dc:creator>
      <pubDate>Thu, 26 Mar 2026 09:43:41 +0000</pubDate>
      <link>https://dev.to/qube_7/operators-in-javascript-2peo</link>
      <guid>https://dev.to/qube_7/operators-in-javascript-2peo</guid>
      <description>&lt;p&gt;&lt;strong&gt;Operators&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Operators are symbols or keywords used in programming to perform operations on data, such as mathematical calculations, comparisons, and logical evaluations. They act on operands (variables or values) to produce a specific result, forming the foundation of data manipulation. &lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Arithmetic&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Arithmetic: Used for math, including addition (+), subtraction (-), multiplication (*), division (/), and modulus (%).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Assignment&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Assigns values to variables, such as = and compound operators like +=, -=, or *=.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Comparison Operators&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;These  operators are used to compare two values &lt;br&gt;
and then returns boolean values (true or false).&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;== (Equal value, with type coercion)
=== (Equal value and equal type; always prefer this strict equality)
!= (Not equal value)
!== (Not equal value or not equal type/ Strict not equal)
&amp;gt; (Greater than)
&amp;lt; (Less than)
&amp;gt;= (Greater than or equal to)
&amp;lt;= (Less than or equal to)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Logical Operators&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;These operators are used to combine or modify boolean expressions.
&amp;amp;&amp;amp; (Logical AND)
|| (Logical OR)
! (Logical NOT)
?? (Nullish coalescing, returns the right operand if the left is null or      undefined, otherwise returns the left).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Other Operators&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;String Concatenation Operator (+): When one of the operands is a string, the + operator concatenates the strings.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Bitwise Operators: Perform operations on the binary representations of numbers (e.g., &amp;amp;, |, ^, ~, &amp;lt;&amp;lt;, &amp;gt;&amp;gt;, &amp;gt;&amp;gt;&amp;gt;)&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Conditionals&lt;/strong&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Use if to specify a code block to be executed, if a specified condition is true&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Use else to specify a code block to be executed, if the same condition is false&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Use else if to specify a new condition to test, if the first condition is false.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
    </item>
    <item>
      <title>Flex in CSS</title>
      <dc:creator>QUBE</dc:creator>
      <pubDate>Wed, 25 Mar 2026 07:06:51 +0000</pubDate>
      <link>https://dev.to/qube_7/flex-in-css-10mc</link>
      <guid>https://dev.to/qube_7/flex-in-css-10mc</guid>
      <description>&lt;p&gt;The flex property in CSS is part of the Flexible Box Layout module, a one-dimensional layout model used for designing responsive layouts that align and distribute space among items in a container. It makes tasks like vertical centering and creating equal-height columns straightforward.&lt;br&gt;
&lt;strong&gt;Properties for the Flex Container&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;display- Enables the flex content.&lt;/li&gt;
&lt;/ol&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;flex: Generates a block-level flex container.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;inline-flex: Generates an inline-level flex container.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;flex-direction: Defines the main axis and the direction.&lt;/p&gt;

&lt;p&gt;-flex-wrap: Controls whether items wrap onto multiple lines (wrap) or stay on a single line (nowrap, the default).&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;justify-content: Aligns items along the main axis (e.g., flex-start, flex-end, center, space-between, space-around, space-evenly).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;align-content: Aligns multiple lines of flex items when flex-wrap is set to wrap and there is extra space in the cross axis.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;gap (or row-gap, column-gap): Explicitly controls the space between flex items. &lt;br&gt;
&lt;strong&gt;Properties for the Flex Items&lt;/strong&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;ol&gt;
&lt;li&gt;These properties control individual items within the container. &lt;/li&gt;
&lt;/ol&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;order: Specifies the display order of an item, overriding the source HTML order (default is 0).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;flex: A shorthand property for flex-grow, flex-shrink, and flex-basis.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;flex-grow: Defines the ability for an item to grow and fill available space (default is 0).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;flex-shrink: Defines the ability for an item to shrink if there is not enough space (default is 1).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;flex-basis: Defines the initial size of an item before the remaining space is distributed (default is auto).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;align-self: Overrides the align-items value for a specific flex item, allowing individual alignment along the cross axis. &lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>frontend</category>
      <category>flexbox</category>
    </item>
    <item>
      <title>HTML Basics</title>
      <dc:creator>QUBE</dc:creator>
      <pubDate>Tue, 24 Feb 2026 08:01:21 +0000</pubDate>
      <link>https://dev.to/qube_7/html-basics-4n63</link>
      <guid>https://dev.to/qube_7/html-basics-4n63</guid>
      <description>&lt;ol&gt;
&lt;li&gt;HTML(HyperText Markup
Language)is the standard language used to create web pages.It structures content on the web using elements and tags.&lt;/li&gt;
&lt;/ol&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;It is not a programming language.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;It is a markup language&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;It tells the browser how to display the content &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;We can use CSS with HTML for designing purpose&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;We can use JavaScript with HTML for functionality&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Basic structure of an HTML page.&lt;br&gt;
&lt;br&gt;
&lt;/p&gt;

My First Web Page



&lt;h1&gt;Welcome to HTML&lt;/h1&gt;

&lt;p&gt;This is my first webpage.&lt;/p&gt;


&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Features of HTML&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Platform Independent&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Simple and easy to learn&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Used in all websites.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
    </item>
  </channel>
</rss>
