<?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: Jaisurya</title>
    <description>The latest articles on DEV Community by Jaisurya (@jaisurya).</description>
    <link>https://dev.to/jaisurya</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%2F4020391%2Ffb23d52d-dc92-4b86-aa13-12a25c9e92b9.png</url>
      <title>DEV Community: Jaisurya</title>
      <link>https://dev.to/jaisurya</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/jaisurya"/>
    <language>en</language>
    <item>
      <title>Functions in JavaScript</title>
      <dc:creator>Jaisurya</dc:creator>
      <pubDate>Thu, 03 Sep 2026 05:32:26 +0000</pubDate>
      <link>https://dev.to/jaisurya/functions-in-javascript-4ck9</link>
      <guid>https://dev.to/jaisurya/functions-in-javascript-4ck9</guid>
      <description>&lt;p&gt;A function is a reusable, self-contained block of code designed to perform a specific task. Instead of writing the same logic multiple times throughout a program, you define it once inside a function and run or call it whenever needed.&lt;/p&gt;

&lt;p&gt;Think of a function like a kitchen blender: you put ingredients in (inputs), it performs a specific operation (processing) and it produces a smoothie (output).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Core components of a function:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Name:&lt;/strong&gt; A descriptive identifier used to call the function (e.g., calculate_num or send_email).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Parameters(Inputs):&lt;/strong&gt; Variables declared in the function definition that accept values (known as arguments) passed into it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Body:&lt;/strong&gt; The block of code that executes when the function is invoked.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Return value(Output):&lt;/strong&gt; The final result the function sends back to the part of the program that called it.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// 1. Define the function&lt;/span&gt;
&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;calculateTotal&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;price&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;taxRate&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;tax&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;price&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="nx"&gt;taxRate&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;total&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;price&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="nx"&gt;tax&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nx"&gt;total&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="c1"&gt;// 2. Call the function with different values&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;shirtTotal&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;calculateTotal&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;25&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;0.08&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt; &lt;span class="c1"&gt;// 8% tax on a $25 shirt&lt;/span&gt;
&lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;shirtTotal&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt; &lt;span class="c1"&gt;// Output: 27&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;shoesTotal&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;calculateTotal&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;80&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;0.08&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt; &lt;span class="c1"&gt;// 8% tax on $80 shoes&lt;/span&gt;
&lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;shoesTotal&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt; &lt;span class="c1"&gt;// Output: 86.4&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>beginners</category>
      <category>javascript</category>
      <category>programming</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>JavaScript Switch Statement</title>
      <dc:creator>Jaisurya</dc:creator>
      <pubDate>Sat, 29 Aug 2026 14:59:22 +0000</pubDate>
      <link>https://dev.to/jaisurya/javascript-switch-statement-2cee</link>
      <guid>https://dev.to/jaisurya/javascript-switch-statement-2cee</guid>
      <description>&lt;p&gt;In JavaScript, a switch case is a conditional statement that is used to provide a way to execute different blocks of code based on the value of an expression.&lt;/p&gt;

&lt;p&gt;The switch statement is used to execute one block of code from multiple alternatives based on the value of an expression. It provides an alternative to multiple if else if statement when comparing a single value against several possible options.&lt;/p&gt;

&lt;p&gt;Here is the syntax of using switch statement:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="k"&gt;switch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;expression&lt;/span&gt;&lt;span class="p"&gt;){&lt;/span&gt;
   &lt;span class="k"&gt;case&lt;/span&gt; &lt;span class="nx"&gt;value1&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="c1"&gt;//code to be executed&lt;/span&gt;
      &lt;span class="k"&gt;break&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

   &lt;span class="k"&gt;case&lt;/span&gt; &lt;span class="nx"&gt;value2&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="c1"&gt;//code to executed&lt;/span&gt;
      &lt;span class="k"&gt;break&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

   &lt;span class="nl"&gt;default&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="c1"&gt;//code to be executed if no case matches&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



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

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;expression: The value or variable that is evaluated once and compared with each case value.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;case value1, case value2: These define the possible values that are compared with the expression. If a match is found, the corresponding code block is executed.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;break: Terminates the current case and exits the switch statement. Without break, execution continues to the next case.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;default: An optional block that executes when none of the case values match the expression. It works similarly to the else block in an if...else statement.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>javascript</category>
      <category>programming</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Javascript If-else Statement</title>
      <dc:creator>Jaisurya</dc:creator>
      <pubDate>Fri, 28 Aug 2026 01:45:00 +0000</pubDate>
      <link>https://dev.to/jaisurya/javascript-if-else-statement-nj2</link>
      <guid>https://dev.to/jaisurya/javascript-if-else-statement-nj2</guid>
      <description>&lt;p&gt;The JavaScript if-else statement is used to execute the code whether condition is true or false. There are three forms of if statement in JavaScript.&lt;/p&gt;

&lt;p&gt;1.if statement&lt;br&gt;
2.if else statement&lt;br&gt;
3.if else if statement&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1.JavaScript if statement&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;It evaluate the content only if expression is true.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;//Syntax&lt;/span&gt;
&lt;span class="k"&gt;if&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;expression&lt;/span&gt;&lt;span class="p"&gt;){&lt;/span&gt;  
&lt;span class="c1"&gt;//content to be evaluated  &lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;  

&lt;span class="c1"&gt;//Example code&lt;/span&gt;
&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nx"&gt;script&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;  
&lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="nx"&gt;a&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;20&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;  
&lt;span class="k"&gt;if&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;a&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;){&lt;/span&gt;  
&lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;write&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;value of a is greater than 10&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;  
&lt;span class="p"&gt;}&lt;/span&gt;  
&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="sr"&gt;/script&amp;gt; &lt;/span&gt;&lt;span class="err"&gt; 
&lt;/span&gt;
&lt;span class="c1"&gt;//Output: value of a is greater than 10&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;2.Javascript if else statement&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;It evaluates the content whether condition is true of false.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;//Syntax&lt;/span&gt;
&lt;span class="k"&gt;if&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;expression&lt;/span&gt;&lt;span class="p"&gt;){&lt;/span&gt;  
&lt;span class="c1"&gt;//content to be evaluated if condition is true  &lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;  
&lt;span class="k"&gt;else&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;  
&lt;span class="c1"&gt;//content to be evaluated if condition is false  &lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;  

&lt;span class="c1"&gt;//Example&lt;/span&gt;
&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nx"&gt;script&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;  
&lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="nx"&gt;a&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;20&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;  
&lt;span class="k"&gt;if&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;a&lt;/span&gt;&lt;span class="o"&gt;%&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="o"&gt;==&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;){&lt;/span&gt;  
&lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;write&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;a is even number&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;  
&lt;span class="p"&gt;}&lt;/span&gt;  
&lt;span class="k"&gt;else&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;  
&lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;write&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;a is odd number&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;  
&lt;span class="p"&gt;}&lt;/span&gt;  
&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="sr"&gt;/script&amp;gt; &lt;/span&gt;&lt;span class="err"&gt; 
&lt;/span&gt;
&lt;span class="c1"&gt;//Output: a is even number&lt;/span&gt;

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

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;3.JavaScript if else if Statement&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;It evaluates the content only if expression is true from several expressions.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;//Syntax&lt;/span&gt;

&lt;span class="k"&gt;if&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;expression1&lt;/span&gt;&lt;span class="p"&gt;){&lt;/span&gt;  
&lt;span class="c1"&gt;//content to be evaluated if expression1 is true  &lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;  
&lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;expression2&lt;/span&gt;&lt;span class="p"&gt;){&lt;/span&gt;  
&lt;span class="c1"&gt;//content to be evaluated if expression2 is true  &lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;  
&lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;expression3&lt;/span&gt;&lt;span class="p"&gt;){&lt;/span&gt;  
&lt;span class="c1"&gt;//content to be evaluated if expression3 is true  &lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;  
&lt;span class="k"&gt;else&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;  
&lt;span class="c1"&gt;//content to be evaluated if no expression is true  &lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;  

&lt;span class="c1"&gt;//Example&lt;/span&gt;

&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nx"&gt;script&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;  
&lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="nx"&gt;a&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;20&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;  
&lt;span class="k"&gt;if&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;a&lt;/span&gt;&lt;span class="o"&gt;==&lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;){&lt;/span&gt;  
&lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;write&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;a is equal to 10&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;  
&lt;span class="p"&gt;}&lt;/span&gt;  
&lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;a&lt;/span&gt;&lt;span class="o"&gt;==&lt;/span&gt;&lt;span class="mi"&gt;15&lt;/span&gt;&lt;span class="p"&gt;){&lt;/span&gt;  
&lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;write&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;a is equal to 15&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;  
&lt;span class="p"&gt;}&lt;/span&gt;  
&lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;a&lt;/span&gt;&lt;span class="o"&gt;==&lt;/span&gt;&lt;span class="mi"&gt;20&lt;/span&gt;&lt;span class="p"&gt;){&lt;/span&gt;  
&lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;write&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;a is equal to 20&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;  
&lt;span class="p"&gt;}&lt;/span&gt;  
&lt;span class="k"&gt;else&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;  
&lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;write&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;a is not equal to 10, 15 or 20&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;  
&lt;span class="p"&gt;}&lt;/span&gt;  
&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="sr"&gt;/script&amp;gt;&lt;/span&gt;&lt;span class="err"&gt; 
&lt;/span&gt;
&lt;span class="c1"&gt;//Output: a is equal to 20&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>beginners</category>
      <category>javascript</category>
      <category>programming</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Javascript Objects</title>
      <dc:creator>Jaisurya</dc:creator>
      <pubDate>Thu, 27 Aug 2026 13:40:52 +0000</pubDate>
      <link>https://dev.to/jaisurya/javascript-objects-59an</link>
      <guid>https://dev.to/jaisurya/javascript-objects-59an</guid>
      <description>&lt;p&gt;In JavaScript, an object is a variable that can hold multiple values. It is a location where a collection of values is stored. Objects are among the most basic data types in JavaScript. Every object contains properties and types, which are a single unit. Objects are not primitive, unlike primitive data types.&lt;/p&gt;

&lt;p&gt;For instance, take a football. A football has properties like weight, shape, color, and design. In this case, the football is an object, and its weight and shape are its properties.&lt;/p&gt;

&lt;p&gt;Similarly, in JavaScript, objects have properties that define their nature. An object can hold various types, like Strings, Numbers, Booleans, Arrays, Functions, etc.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Syntax of Object in JavaScript&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// Object literal syntax  &lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;myObject&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;  
  &lt;span class="na"&gt;key1&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;value1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;  
  &lt;span class="na"&gt;key2&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;value2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;  
  &lt;span class="c1"&gt;// more key-value pairs...  &lt;/span&gt;
&lt;span class="p"&gt;};&lt;/span&gt;  
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



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

&lt;ol&gt;
&lt;li&gt;Curly braces are used to demarcate the start and termination of an object literal.&lt;/li&gt;
&lt;li&gt;Inside these braces, you define key-value pairs separated by commas.&lt;/li&gt;
&lt;li&gt;Every key is a string (or symbol in ES6+).&lt;/li&gt;
&lt;li&gt;A colon comes after each key, followed by its value.&lt;/li&gt;
&lt;li&gt;They may be of any data type like strings, numbers, booleans, arrays, functions, or other objects.&lt;/li&gt;
&lt;/ol&gt;

</description>
      <category>beginners</category>
      <category>javascript</category>
      <category>programming</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>HTML &amp; CSS Interview questions</title>
      <dc:creator>Jaisurya</dc:creator>
      <pubDate>Mon, 24 Aug 2026 02:51:06 +0000</pubDate>
      <link>https://dev.to/jaisurya/html-css-interview-questions-1hbf</link>
      <guid>https://dev.to/jaisurya/html-css-interview-questions-1hbf</guid>
      <description>&lt;p&gt;*&lt;em&gt;1. What is the CSS Box Model, and how does box-sizing affect it?&lt;br&gt;
*&lt;/em&gt;&lt;br&gt;
Every element on a page is basically a rectangular box made up of four parts: content, padding, border, and margin. By default, browsers use box-sizing: content-box, which means if you set width: 200px, that's just the content area — any padding or border you add gets tacked on top, making the element bigger than you intended. This trips people up constantly. Switching to box-sizing: border-box fixes that headache by folding padding and border into your specified width/height, so the element stays the size you actually set. It makes responsive layouts way more predictable, which is why a lot of developers just apply it globally at the start of a project.&lt;/p&gt;

&lt;p&gt;*&lt;em&gt;2. What's the difference between display: block, inline, and inline-block?&lt;br&gt;
*&lt;/em&gt;&lt;br&gt;
It comes down to how the element sits in the page flow and which sizing properties actually work on it.&lt;/p&gt;

&lt;p&gt;block — Takes up its own line and stretches to fill the available width. You can set width, height, and margins/padding on all sides and they'll behave as expected. Think &lt;/p&gt; or &lt;p&gt;.&lt;br&gt;
inline — Just flows along with the text, no line breaks. Width and height are ignored, and vertical margin/padding won't push other elements away — only left/right spacing really works. Think &lt;span&gt; or &lt;a&gt;.&lt;br&gt;
inline-block — The best of both: it sits inline next to other elements, but you can still give it a width, height, and full padding/margin like a block element. Buttons and form inputs behave this way.&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;a&gt;

&lt;p&gt;&lt;strong&gt;3. What are semantic HTML elements, and why do they matter?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Semantic elements are tags that actually describe what they contain — things like &lt;/p&gt;, , , , and  — instead of just wrapping everything in generic s and &lt;span&gt;s that say nothing about their purpose.

&lt;p&gt;This matters for a couple of practical reasons. Screen readers rely on these landmarks to let visually impaired users jump straight to the content they care about, rather than tabbing through endless nested divs. And search engines can better understand which part of the page is the actual content versus just navigation or boilerplate, which can genuinely help with SEO.&lt;/p&gt;

&lt;/span&gt;&lt;/a&gt;

</description>
      <category>css</category>
      <category>frontend</category>
      <category>html</category>
      <category>interview</category>
    </item>
    <item>
      <title>Software development life cycle</title>
      <dc:creator>Jaisurya</dc:creator>
      <pubDate>Mon, 24 Aug 2026 02:39:30 +0000</pubDate>
      <link>https://dev.to/jaisurya/software-development-life-cycle-3no0</link>
      <guid>https://dev.to/jaisurya/software-development-life-cycle-3no0</guid>
      <description>&lt;p&gt;The Software development life cycle (SDLC) is a structured, step by step process used by software engineering teams to design, develop, test and deploy high quality software efficiently and cost effectively.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Key phases in SDLC:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Planning and Requirement Analysis:&lt;/strong&gt; Gathering stakeholder needs, defining the scope, estimating costs, and assessing project feasibility.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Design:&lt;/strong&gt; Creating the software architecture, data models, system interfaces, and technical specifications based on the requirements.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Development:&lt;/strong&gt; Developers write the actual source code according to the design documents, breaking the workload into modules.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Testing:&lt;/strong&gt; Quality Assurance (QA) teams test the software for bugs, security vulnerabilities, performance bottlenecks and compliance with original requirements.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Deployment:&lt;/strong&gt; Releasing the software to a live production environment so end-users can access it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Maintenance:&lt;/strong&gt; Ongoing monitoring, patching bugs, applying security updates, and adding new features based on user feedback.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Javascript features</title>
      <dc:creator>Jaisurya</dc:creator>
      <pubDate>Tue, 18 Aug 2026 14:26:59 +0000</pubDate>
      <link>https://dev.to/jaisurya/javascript-features-10h1</link>
      <guid>https://dev.to/jaisurya/javascript-features-10h1</guid>
      <description>&lt;p&gt;JavaScript is a programming language that lets developers create interactive web pages. It is a high-level and interpreted programming language that is primarily used for building interactive and dynamic websites.&lt;/p&gt;

&lt;p&gt;JavaScript is one of the most popular programming languages, which includes several features when it comes to web development. Some of its key features are lightweight, dynamic, functional, and interpreted.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Lightweight &amp;amp; Interpreted (JIT-Compiled):&lt;/strong&gt; Executes directly in environments like browsers or Node.js without requiring prior manual compilation, utilizing Just-In-Time (JIT) compilers for fast runtime performance.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Dynamically Typed:&lt;/strong&gt; Variable types are resolved at runtime rather than compile-time, meaning a single variable can hold different data types over its lifecycle without explicit type declarations.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Single-Threaded with Asynchronous Processing:&lt;/strong&gt; Uses a single main call stack paired with an Event Loop (microtask and macrotask queues) to handle non-blocking asynchronous operations such as API requests, timers, and file I/O.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Hoisting</title>
      <dc:creator>Jaisurya</dc:creator>
      <pubDate>Fri, 14 Aug 2026 03:10:17 +0000</pubDate>
      <link>https://dev.to/jaisurya/hoisting-1o35</link>
      <guid>https://dev.to/jaisurya/hoisting-1o35</guid>
      <description>&lt;p&gt;Hoisting in JavaScript is the engine’s behavior of moving declarations to the top of their scope (global or local) before execution. Because of hoisting, you can reference functions or variables in your code before the lines where they are defined.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1.Function Declaration&lt;/strong&gt;&lt;br&gt;
   Function declarations are hoisted in their entirety—both the declaration and the body. This means you can call a function before it appears in the source code.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nf"&gt;hello&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt; &lt;span class="c1"&gt;//Output: hello!&lt;/span&gt;
&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;hello&lt;/span&gt;&lt;span class="p"&gt;(){&lt;/span&gt;
   &lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;hello!&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;2.var Declaration&lt;/strong&gt;&lt;br&gt;
   When you use var, JavaScript hoists the variable declaration, but not its assignment. Until the execution line reaches the assignment, the variable holds undefined.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;num&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt; &lt;span class="c1"&gt;//Output: undefined&lt;/span&gt;
&lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="nx"&gt;num&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;num&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt; &lt;span class="c1"&gt;//Output: 10&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>javascript</category>
      <category>programming</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Javascript Variable</title>
      <dc:creator>Jaisurya</dc:creator>
      <pubDate>Wed, 12 Aug 2026 13:24:09 +0000</pubDate>
      <link>https://dev.to/jaisurya/javascript-variable-i8p</link>
      <guid>https://dev.to/jaisurya/javascript-variable-i8p</guid>
      <description>&lt;p&gt;In JavaScript, a variable is a named storage location that holds a value, which can be any data type, such as numbers, strings, boolean, etc. It can be declared using keywords like var, let, or const.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1.var&lt;/strong&gt;&lt;br&gt;
var is function scoped, it can be re-declared and reassigned.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="k"&gt;if&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;){&lt;/span&gt;
  &lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="nx"&gt;a&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;a&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="c1"&gt;//Output: 10&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;2.let&lt;/strong&gt;&lt;br&gt;
let is block scoped, it can be updated , but can't be redeclared in the same scope.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="nx"&gt;x&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;if&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;){&lt;/span&gt;
  &lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="nx"&gt;x&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;35&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;x&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt; 
&lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;x&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="c1"&gt;//Output:&lt;/span&gt;
&lt;span class="mi"&gt;35&lt;/span&gt;
&lt;span class="mi"&gt;10&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;3.const&lt;/strong&gt;&lt;br&gt;
const is also block scoped, it can't be updated, used to store constant values&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;pi&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mf"&gt;3.14&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="nx"&gt;r&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="nx"&gt;c&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="nx"&gt;pi&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="nx"&gt;r&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;c&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="c1"&gt;//Output: &lt;/span&gt;
&lt;span class="mf"&gt;12.56&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>beginners</category>
      <category>javascript</category>
      <category>programming</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Security considerations in IFrame tag</title>
      <dc:creator>Jaisurya</dc:creator>
      <pubDate>Thu, 06 Aug 2026 14:35:45 +0000</pubDate>
      <link>https://dev.to/jaisurya/security-considerations-in-iframe-tag-51po</link>
      <guid>https://dev.to/jaisurya/security-considerations-in-iframe-tag-51po</guid>
      <description>&lt;p&gt;The  (Inline frame) tag is used to embed another HTML document or web resource inside the current webpage. It essentially creates a nested browser window within your layout.&amp;lt;/p&amp;gt;

&amp;lt;p&amp;gt;There are security risks that can be created by using iframes unless handled in the right manner. As an example, content that uses embedded external websites can create the risk of clickjacking or script injections. To counter these:&amp;lt;/p&amp;gt;

&amp;lt;ul&amp;gt;
&amp;lt;li&amp;gt;Take a sandbox attribute to limit the frame behaviour (block scripts, forms, or popups).&amp;lt;/li&amp;gt;
&amp;lt;li&amp;gt;Never leave an unverified source dangling as src, or domain, etc.&amp;lt;/li&amp;gt;
&amp;lt;li&amp;gt;Integrate the sandbox with the ability to allow attributes to have more precise control.
&amp;lt;/li&amp;gt;
&amp;lt;/ul&amp;gt;
&amp;lt;div class="highlight"&amp;gt;&amp;lt;pre class="highlight html"&amp;gt;&amp;lt;code&amp;gt;&amp;lt;span class="nt"&amp;gt;&amp;amp;lt;iframe&amp;lt;/span&amp;gt; &amp;lt;span class="na"&amp;gt;src=&amp;lt;/span&amp;gt;&amp;lt;span class="s"&amp;gt;"https://www.youtube.com"&amp;lt;/span&amp;gt; &amp;lt;span class="na"&amp;gt;sandbox=&amp;lt;/span&amp;gt;&amp;lt;span class="s"&amp;gt;"allow-scripts allow-same-origin"&amp;lt;/span&amp;gt;&amp;lt;span class="nt"&amp;gt;&amp;amp;gt;&amp;amp;lt;/iframe&amp;amp;gt;&amp;lt;/span&amp;gt;
&amp;lt;/code&amp;gt;&amp;lt;/pre&amp;gt;&amp;lt;/div&amp;gt;
&amp;lt;p&amp;gt;&amp;lt;/p&amp;gt;
&lt;/p&gt;

</description>
      <category>cybersecurity</category>
      <category>html</category>
      <category>security</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Tailwind CSS</title>
      <dc:creator>Jaisurya</dc:creator>
      <pubDate>Mon, 03 Aug 2026 16:59:31 +0000</pubDate>
      <link>https://dev.to/jaisurya/tailwind-css-4i8p</link>
      <guid>https://dev.to/jaisurya/tailwind-css-4i8p</guid>
      <description>&lt;p&gt;Tailwind CSS is a utility-first CSS framework that lets you build custom user interfaces directly in your HTML or component markup without writing traditional custom stylesheets.&lt;/p&gt;

&lt;p&gt;Tailwind provides low-level utility classes—such as flex, pt-4, bg-blue-500, and text-center—that map directly to individual CSS rules.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How It Works (Traditional CSS vs. Tailwind)&lt;/strong&gt;&lt;br&gt;
Instead of naming classes and jumping back and forth between your HTML and CSS files, you combine utility classes directly on HTML elements.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Traditional CSS&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="c"&gt;&amp;lt;!-- HTML --&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;button&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"custom-button"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Click Me&lt;span class="nt"&gt;&amp;lt;/button&amp;gt;&lt;/span&gt;

/* CSS */
.custom-button {
  background-color: #3b82f6;
  color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  font-weight: 600;
}

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

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Tailwind CSS&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;button&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"bg-blue-500 text-white px-4 py-2 rounded font-semibold hover:bg-blue-600"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
  Click Me
&lt;span class="nt"&gt;&amp;lt;/button&amp;gt;&lt;/span&gt;

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

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Advantages&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Rapid Development: You don't waste time jumping between HTML and CSS files, nor do you spend mental energy coming up with naming conventions (like BEM) for class names.&lt;/li&gt;
&lt;li&gt;Consistent Design System: Instead of picking random pixels or hex codes, Tailwind enforces a uniform scale for spacing, typography, shadows, and colors out of the box.&lt;/li&gt;
&lt;li&gt;No Class Name Collisions: Since styles are tied directly to utilities or components rather than global selectors, changing one element's style will never accidentally break another element elsewhere on your site.&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>css</category>
      <category>frontend</category>
      <category>ui</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Responsive web design</title>
      <dc:creator>Jaisurya</dc:creator>
      <pubDate>Sun, 02 Aug 2026 14:48:17 +0000</pubDate>
      <link>https://dev.to/jaisurya/responsive-web-design-5dl</link>
      <guid>https://dev.to/jaisurya/responsive-web-design-5dl</guid>
      <description>&lt;p&gt;Responsive Web Design is an approach to web development that makes a website automatically adapt its layout, images, and content to fit the screen size and orientation of whatever device is viewing it whether it's a desktop monitor, a tablet, or a smartphone screen.&lt;/p&gt;

&lt;p&gt;Instead of building separate websites for desktop users (example.com) and mobile users (m.example.com), developers build one single code base that fluidly resizes.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Three Core Technical Pillars:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fluid Grids&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Traditional web pages used fixed widths. Responsive design uses relative units like percentages, viewport units, or CSS Grid/Flexbox. Elements shrink or expand proportionally as the viewport scales.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Flexible Images &amp;amp; Media&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Media is set to never exceed its container size using CSS rules like max-width: 100%. This prevents large images from overflowing small mobile viewports or breaking the layout.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;CSS Media Queries&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Media queries allow developers to apply specific CSS rules only when certain conditions are met—most commonly screen width breakpoints.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Why Responsive Design Matters&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Better User Experience: Users don't have to pinch, zoom, or scroll horizontally to read content.&lt;/li&gt;
&lt;li&gt;Cost Efficiency: Maintaining a single responsive codebase is significantly faster and cheaper than managing separate desktop and mobile versions.&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>css</category>
      <category>frontend</category>
      <category>responsive</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
