<?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: ihsaan muhammed</title>
    <description>The latest articles on DEV Community by ihsaan muhammed (@ihsaan_muhammed_18).</description>
    <link>https://dev.to/ihsaan_muhammed_18</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%2F4018943%2Ff6b00677-d12c-4bc1-8aff-2fd60d902cc8.jpg</url>
      <title>DEV Community: ihsaan muhammed</title>
      <link>https://dev.to/ihsaan_muhammed_18</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ihsaan_muhammed_18"/>
    <language>en</language>
    <item>
      <title>FUNCTIONS USED IN ARRAY</title>
      <dc:creator>ihsaan muhammed</dc:creator>
      <pubDate>Tue, 01 Sep 2026 15:58:22 +0000</pubDate>
      <link>https://dev.to/ihsaan_muhammed_18/functions-used-in-array-31bf</link>
      <guid>https://dev.to/ihsaan_muhammed_18/functions-used-in-array-31bf</guid>
      <description>&lt;p&gt;&lt;strong&gt;JavaScript provides many built-in array methods to create, modify, search, and process arrays.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;1)&lt;strong&gt;push()&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Adds one or more elements to the end of an array.&lt;/p&gt;

&lt;p&gt;EXAMPLE:&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;fruits&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Apple&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Banana&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;];&lt;/span&gt;
&lt;span class="nx"&gt;fruits&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;push&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Mango&lt;/span&gt;&lt;span class="dl"&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;fruits&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;OUTPUT:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"Apple"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Banana"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Mango"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;2) &lt;strong&gt;pop()&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Removes the last element from an array.&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;EXAMPLE&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
&lt;span class="nx"&gt;Let&lt;/span&gt; &lt;span class="nx"&gt;fruits&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Apple&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Banana&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Mango&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;];&lt;/span&gt;
&lt;span class="nx"&gt;fruits&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;pop&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;fruits&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

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

&lt;/div&gt;



&lt;p&gt;OUTPUT:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"Apple"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Banana"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;3) unshift()&lt;/p&gt;

&lt;p&gt;Adds one or more elements to the beginning of an array.&lt;/p&gt;

&lt;p&gt;EXAMPLE:&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;fruits&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Banana&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Mango&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;];&lt;/span&gt;
&lt;span class="nx"&gt;fruits&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;unshift&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Apple&lt;/span&gt;&lt;span class="dl"&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;fruits&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

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

&lt;/div&gt;



&lt;p&gt;OUTPUT:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"Apple"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Banana"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Mango"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;4)shift()&lt;/p&gt;

&lt;p&gt;Removes the first element from an array&lt;br&gt;
EXAMPLE:&lt;/p&gt;

&lt;p&gt;l&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;et&lt;/span&gt; &lt;span class="nx"&gt;fruits&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Apple&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Banana&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Mango&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;];&lt;/span&gt;
&lt;span class="nx"&gt;fruits&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;shift&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;fruits&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

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

&lt;/div&gt;



&lt;p&gt;OUTPUT:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"Banana"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Mango"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;5) includes()&lt;/p&gt;

&lt;p&gt;Checks whether an array contains a particular element.&lt;br&gt;
EXAMPLE:&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;numbers&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;20&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;30&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;numbers&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;includes&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;20&lt;/span&gt;&lt;span class="p"&gt;));&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;OUTPUT:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;true

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

&lt;/div&gt;



&lt;p&gt;6)slice&lt;br&gt;
Returns a portion of an array without changing the original array&lt;/p&gt;

&lt;p&gt;EXAMPLE:&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;numbers&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;20&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;30&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;40&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;50&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;result&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;numbers&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;slice&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;4&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;result&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;OUTPUT:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;20&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;30&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;40&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;7)join()&lt;/p&gt;

&lt;p&gt;Converts array elements into a string.&lt;/p&gt;

&lt;p&gt;EXAMPLE:&lt;br&gt;
l&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;et&lt;/span&gt; &lt;span class="nx"&gt;fruits&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Apple&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Banana&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Mango&lt;/span&gt;&lt;span class="dl"&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;fruits&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;join&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;, &lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;));&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;OUTPUT:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Apple, Banana, Mango
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;8)reverse()&lt;/p&gt;

&lt;p&gt;Reverses the order of elements.&lt;br&gt;
EXAMPLE:&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;numbers&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;];&lt;/span&gt;

&lt;span class="nx"&gt;numbers&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;reverse&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;numbers&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;OUTPUT:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
    </item>
    <item>
      <title>PATTERN PROGRAM USING NESTED LOOPS IN JS</title>
      <dc:creator>ihsaan muhammed</dc:creator>
      <pubDate>Mon, 31 Aug 2026 15:39:25 +0000</pubDate>
      <link>https://dev.to/ihsaan_muhammed_18/pattern-program-using-nested-loops-in-js-5fn7</link>
      <guid>https://dev.to/ihsaan_muhammed_18/pattern-program-using-nested-loops-in-js-5fn7</guid>
      <description>&lt;p&gt;&lt;strong&gt;what is nested loops ??&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A nested loop means placing one loop inside another loop. The outer loop executes first, and for each iteration of the outer loop, the inner loop executes completely.&lt;/p&gt;

&lt;p&gt;example -- 1&lt;br&gt;
*&lt;br&gt;
&lt;em&gt;1. **Print a 5 × 5 Star Pattern&lt;/em&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="k"&gt;for &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;i&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="nx"&gt;i&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;=&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="nx"&gt;i&lt;/span&gt;&lt;span class="o"&gt;++&lt;/span&gt;&lt;span class="p"&gt;)&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;row&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="dl"&gt;""&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

    &lt;span class="k"&gt;for &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;j&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="nx"&gt;j&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;=&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="nx"&gt;j&lt;/span&gt;&lt;span class="o"&gt;++&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nx"&gt;row&lt;/span&gt; &lt;span class="o"&gt;+=&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;* &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="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;row&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="o"&gt;**&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;OUTPUT:&lt;/p&gt;
















&lt;p&gt;**example -- 2&lt;/p&gt;

&lt;p&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="o"&gt;*&lt;/span&gt;&lt;span class="k"&gt;for &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;i&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="nx"&gt;i&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;=&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="nx"&gt;i&lt;/span&gt;&lt;span class="o"&gt;--&lt;/span&gt;&lt;span class="p"&gt;)&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;row&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="dl"&gt;""&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

    &lt;span class="k"&gt;for &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;j&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="nx"&gt;j&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;=&lt;/span&gt; &lt;span class="nx"&gt;i&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="nx"&gt;j&lt;/span&gt;&lt;span class="o"&gt;++&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nx"&gt;row&lt;/span&gt; &lt;span class="o"&gt;+=&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;* &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="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;row&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
 &lt;span class="o"&gt;****&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;OUTPUT:&lt;/p&gt;










&lt;ul&gt;
&lt;li&gt;*
*&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;USES OF PATTERN PROGRAMS&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Understanding FOR &amp;amp; NESTED Loops&lt;/p&gt;

&lt;p&gt;They provide simple examples for learning how loops work, including:&lt;/p&gt;

&lt;p&gt;Initialization&lt;br&gt;
Condition&lt;br&gt;
Increment/decrement&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>javascript</category>
      <category>programming</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>CONDITIONAL STATEMENTS IN JAVA SCRIPT...</title>
      <dc:creator>ihsaan muhammed</dc:creator>
      <pubDate>Thu, 27 Aug 2026 15:39:31 +0000</pubDate>
      <link>https://dev.to/ihsaan_muhammed_18/conditional-statements-in-java-script-2nje</link>
      <guid>https://dev.to/ihsaan_muhammed_18/conditional-statements-in-java-script-2nje</guid>
      <description>&lt;p&gt;What is Conditional Statements in JavaScript??&lt;/p&gt;

&lt;p&gt;Conditional statements are used in JavaScript to make **decisions based on whether a condition is true or false. **They allow a program to execute different blocks of code depending on the situation.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;CATEGORIES OF CONDITIONAL STATEMENTS&lt;/strong&gt;&lt;br&gt;
*&lt;em&gt;1)if&lt;br&gt;
2)if...else&lt;br&gt;
3)if... else if...else&lt;br&gt;
4)nested if &lt;br&gt;
5)switch statement&lt;br&gt;
6)Ternary Operator&lt;br&gt;
*&lt;/em&gt;&lt;br&gt;
**&lt;br&gt;
1) if **&lt;br&gt;
The if statement executes a block of code only when the given condition is true.&lt;br&gt;
EXAMPLE &lt;/p&gt;

&lt;p&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="o"&gt;*&lt;/span&gt;&lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="nx"&gt;age&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;age&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;=&lt;/span&gt; &lt;span class="mi"&gt;18&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="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;You are eligible to vote.&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;**&lt;/span&gt;

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

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;2)if...else&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The if...else statement executes one block when the condition is true and another block when it is false.&lt;br&gt;
EXAMPLE&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="o"&gt;**&lt;/span&gt;&lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="nx"&gt;age&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;16&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;age&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;=&lt;/span&gt; &lt;span class="mi"&gt;18&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="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Eligible to vote&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="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;Not eligible to vote&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;**&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;3)if... else if...else&lt;/p&gt;

&lt;p&gt;It is used when there are multiple conditions to check.&lt;br&gt;
EXAMPLE&lt;br&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="o"&gt;*&lt;/span&gt;&lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="nx"&gt;mark&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;75&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;mark&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;=&lt;/span&gt; &lt;span class="mi"&gt;90&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="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Grade A+&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;mark&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;=&lt;/span&gt; &lt;span class="mi"&gt;75&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="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Grade A&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;mark&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;=&lt;/span&gt; &lt;span class="mi"&gt;50&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="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Grade B&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="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;Fail&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;**&lt;/span&gt;
&lt;span class="o"&gt;**&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;4)nested if **&lt;/p&gt;

&lt;p&gt;An if statement placed inside another if statement is called a nested if.&lt;/p&gt;

&lt;p&gt;EXAMPLE&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;age&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;25&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;hasLicense&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;true&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;age&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;=&lt;/span&gt; &lt;span class="mi"&gt;18&lt;/span&gt;&lt;span class="p"&gt;)&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;hasLicense&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="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;You can drive.&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="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;5)switch statement&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The switch statement is useful when one value needs to be compared with multiple possible values.&lt;/p&gt;

&lt;p&gt;EXAMPLE&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;day&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="k"&gt;switch &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;day&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;case&lt;/span&gt; &lt;span class="mi"&gt;1&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;Monday&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&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="mi"&gt;2&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;Tuesday&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&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="mi"&gt;3&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;Wednesday&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&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="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;Invalid day&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;6)Ternary Operator&lt;br&gt;
The ternary operator is a short form of if...else. It uses ? and :.&lt;/p&gt;

&lt;p&gt;EXAMPLE&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;age&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="kd"&gt;let&lt;/span&gt; &lt;span class="nx"&gt;result&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;age&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;=&lt;/span&gt; &lt;span class="mi"&gt;18&lt;/span&gt; &lt;span class="p"&gt;?&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Adult&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Minor&lt;/span&gt;&lt;span class="dl"&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;result&lt;/span&gt;&lt;span class="p"&gt;);&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>PRIMITIVE VS NON-PRIMITIVE DATA TYPES IN JAVASCRIPT</title>
      <dc:creator>ihsaan muhammed</dc:creator>
      <pubDate>Tue, 25 Aug 2026 15:31:30 +0000</pubDate>
      <link>https://dev.to/ihsaan_muhammed_18/primitive-vs-non-primitive-data-types-in-javascript-33dn</link>
      <guid>https://dev.to/ihsaan_muhammed_18/primitive-vs-non-primitive-data-types-in-javascript-33dn</guid>
      <description>&lt;p&gt;&lt;strong&gt;WHAT IS DATA TYPE ??&lt;/strong&gt;&lt;br&gt;
Data types specify what kind of &lt;strong&gt;value a variable can store&lt;/strong&gt;. In programming language JavaScript, data types are broadly classified into primitive and non-primitive types.&lt;/p&gt;

&lt;p&gt;**&lt;br&gt;
PRIMITIVE DATA TYPES**&lt;/p&gt;

&lt;p&gt;PRIMITIVE DATA types are the basic types which can simply hold one single value&lt;/p&gt;

&lt;p&gt;EXAMPLES&lt;br&gt;
1) int&lt;br&gt;
2)boolean&lt;br&gt;
3)long&lt;br&gt;
4)short&lt;/p&gt;

&lt;p&gt;*&lt;em&gt;NON-PRIMITIVE DATA TYPES *&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;NON-PRIMITIVE DATA TYPES are also called reference data types. They can store references to objects and can represent complex or collections of values&lt;/p&gt;

&lt;p&gt;EXAMPLES&lt;br&gt;
1)STRING&lt;br&gt;
2)ARRAYS&lt;br&gt;
3)CLASSES&lt;/p&gt;

</description>
    </item>
    <item>
      <title>WHITE BOX TESTING...</title>
      <dc:creator>ihsaan muhammed</dc:creator>
      <pubDate>Mon, 24 Aug 2026 17:03:26 +0000</pubDate>
      <link>https://dev.to/ihsaan_muhammed_18/white-box-testing-3mnf</link>
      <guid>https://dev.to/ihsaan_muhammed_18/white-box-testing-3mnf</guid>
      <description>&lt;p&gt;**White Box Testing&lt;/p&gt;

&lt;p&gt;White Box Testing is a software testing technique in which the &lt;strong&gt;internal structure, source code, logic, and implementation of a program&lt;/strong&gt; are examined and **tested. **The tester has knowledge of the internal working of the software.&lt;/p&gt;

&lt;p&gt;It is also called &lt;strong&gt;Structural Testing, Clear Box Testing, or Glass Box Testing.&lt;/strong&gt;**&lt;/p&gt;




&lt;p&gt;Techniques of White Box Testing**&lt;/p&gt;




&lt;ol&gt;
&lt;li&gt;Statement Coverage**&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Checks whether every statement in the program is executed at least once.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Branch Coverage&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Checks whether every decision has been tested for both outcomes, such as True and False.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Path Coverage&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Tests different possible execution paths through the program.&lt;br&gt;
**&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Condition Coverage**&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Tests individual conditions in a decision to ensure they produce both True and False results.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5. Loop Testing&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Tests loops with different conditions, such as:&lt;/p&gt;

&lt;p&gt;Zero iterations&lt;br&gt;
One iteration&lt;br&gt;
Multiple iterations&lt;br&gt;
Maximum iterations&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Advantages&lt;/strong&gt;&lt;br&gt;
Helps find errors in the program's internal logic.&lt;br&gt;
Improves code quality.&lt;br&gt;
Helps identify unused or unnecessary code.&lt;br&gt;
Provides better test coverage.&lt;br&gt;
Can detect logical and programming errors early.&lt;br&gt;
Useful for optimizing program code.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Disadvantages&lt;/strong&gt;&lt;br&gt;
Requires knowledge of programming and source code.&lt;br&gt;
Can be time-consuming for large applications.&lt;br&gt;
Difficult to test every possible path in complex programs.&lt;br&gt;
Usually requires skilled testers or developers.&lt;br&gt;
Does not focus primarily on the software's external behavior from a user's perspective.&lt;/p&gt;

</description>
      <category>testing</category>
      <category>whitebox</category>
      <category>selenium</category>
    </item>
    <item>
      <title>VARIANCE IN MACHINE LEARNING</title>
      <dc:creator>ihsaan muhammed</dc:creator>
      <pubDate>Fri, 07 Aug 2026 16:00:07 +0000</pubDate>
      <link>https://dev.to/ihsaan_muhammed_18/variance-in-machine-learning-1n8e</link>
      <guid>https://dev.to/ihsaan_muhammed_18/variance-in-machine-learning-1n8e</guid>
      <description>&lt;p&gt;&lt;strong&gt;Definition of Variance&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Variance is a statistical measure that indicates how far the data values or a machine learning model's predictions are spread out from their mean (average). It measures the amount of variability or dispersion in a dataset.&lt;/p&gt;

&lt;p&gt;In machine learning, variance refers to how much a model's predictions change when it is trained on different training datasets. A model with high variance is very sensitive to small changes in the training data and may overfit, while a model with low variance produces more stable predictions and generally generalizes better to unseen data.Types of Variance in Machine Learning&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Data Variance&lt;/strong&gt;&lt;br&gt;
Definition&lt;/p&gt;

&lt;p&gt;Data variance refers to the variation present in the dataset itself. It shows how much the feature values differ from one another.&lt;/p&gt;

&lt;p&gt;Example&lt;/p&gt;

&lt;p&gt;Consider students' marks:&lt;/p&gt;

&lt;p&gt;Low Variance: 78, 79, 80, 81, 82&lt;br&gt;
High Variance: 30, 55, 80, 95, 100&lt;br&gt;
Applications&lt;br&gt;
Data analysis&lt;br&gt;
Data preprocessing&lt;br&gt;
Feature engineering&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Model Variance&lt;/strong&gt;&lt;br&gt;
Definition&lt;/p&gt;

&lt;p&gt;Model variance measures how much a machine learning model's predictions change when trained on different training datasets.&lt;/p&gt;

&lt;p&gt;Characteristics&lt;br&gt;
Sensitive to changes in training data&lt;br&gt;
May memorize training data&lt;br&gt;
Usually leads to overfitting&lt;br&gt;
Example&lt;/p&gt;

&lt;p&gt;A deep decision tree often has high model variance because small changes in the training data can produce a very different tree.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. High Variance&lt;/strong&gt;&lt;br&gt;
Definition&lt;/p&gt;

&lt;p&gt;High variance occurs when a model learns the training data too well, including its noise, resulting in poor performance on unseen data.&lt;/p&gt;

&lt;p&gt;Characteristics&lt;br&gt;
Overfitting&lt;br&gt;
High training accuracy&lt;br&gt;
Low testing accuracy&lt;br&gt;
Poor generalization&lt;br&gt;
Example&lt;/p&gt;

&lt;p&gt;A decision tree with many levels fits the training data perfectly but performs poorly on new data.&lt;/p&gt;

&lt;p&gt;Problems&lt;br&gt;
Poor prediction on unseen data&lt;br&gt;
Sensitive to small data changes&lt;br&gt;
Solutions&lt;br&gt;
Increase training data&lt;br&gt;
Apply regularization&lt;br&gt;
Use cross-validation&lt;br&gt;
Simplify the model&lt;br&gt;
Use ensemble methods such as Random Forest&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Low Variance&lt;/strong&gt;&lt;br&gt;
Definition&lt;/p&gt;

&lt;p&gt;Low variance means the model's predictions remain consistent even when trained on different datasets.&lt;/p&gt;

&lt;p&gt;Characteristics&lt;br&gt;
Stable predictions&lt;br&gt;
Good generalization&lt;br&gt;
Less sensitive to data changes&lt;br&gt;
Example&lt;/p&gt;

&lt;p&gt;Linear Regression often has lower variance than a complex Decision Tree.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Advantages&lt;/strong&gt;&lt;br&gt;
Better performance on unseen data&lt;br&gt;
More reliable predictions&lt;/p&gt;

</description>
      <category>data</category>
      <category>datascience</category>
      <category>machinelearning</category>
    </item>
    <item>
      <title>TYPES OF MACHINE LEARNING...</title>
      <dc:creator>ihsaan muhammed</dc:creator>
      <pubDate>Thu, 06 Aug 2026 16:01:15 +0000</pubDate>
      <link>https://dev.to/ihsaan_muhammed_18/types-of-machine-learning-46lm</link>
      <guid>https://dev.to/ihsaan_muhammed_18/types-of-machine-learning-46lm</guid>
      <description>&lt;p&gt;Types of Machine Learning &lt;/p&gt;

&lt;p&gt;Machine Learning (ML) is a branch of Artificial Intelligence (AI) that enables computers to learn from data and make predictions or decisions without being explicitly programmed. The four main types of machine learning are:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Supervised Learning&lt;br&gt;
Unsupervised Learning&lt;br&gt;
Semi-Supervised Learning&lt;br&gt;
Reinforcement Learning&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Supervised Learning&lt;/strong&gt;&lt;br&gt;
Definition&lt;/p&gt;

&lt;p&gt;Supervised learning is a type of machine learning in which the model is trained using labeled data. Each training example consists of an input and its correct output (label). The algorithm learns the relationship between inputs and outputs so it can predict the output for new, unseen data.&lt;br&gt;
**&lt;br&gt;
Working Process**&lt;br&gt;
Collect labeled training data.&lt;br&gt;
Train the machine learning model.&lt;br&gt;
Learn the mapping between input and output.&lt;br&gt;
Test the model using new data.&lt;br&gt;
Predict the correct output.&lt;/p&gt;

&lt;p&gt;Types of Supervised Learning&lt;br&gt;
&lt;strong&gt;A. Classification&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Used when the output is a category.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Examples&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Email Spam Detection (Spam / Not Spam)&lt;br&gt;
Disease Prediction (Positive / Negative)&lt;br&gt;
Handwritten Digit Recognition (0–9)&lt;br&gt;
&lt;strong&gt;B. Regression&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Used when the output is a continuous value.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Examples&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;House Price Prediction&lt;br&gt;
Temperature Forecasting&lt;br&gt;
Stock Price Prediction&lt;br&gt;
Common Algorithms&lt;br&gt;
Linear Regression&lt;br&gt;
Logistic Regression&lt;br&gt;
Decision Tree&lt;br&gt;
Random Forest&lt;br&gt;
Support Vector Machine (SVM)&lt;br&gt;
K-Nearest Neighbor (KNN)&lt;br&gt;
Naïve Bayes&lt;br&gt;
**&lt;br&gt;
Advantages**&lt;br&gt;
High prediction accuracy with quality labeled data.&lt;br&gt;
Easy to evaluate performance.&lt;br&gt;
Suitable for classification and regression problems.&lt;br&gt;
&lt;strong&gt;Disadvantages&lt;/strong&gt;&lt;br&gt;
Requires a large amount of labeled data.&lt;br&gt;
Labeling data is time-consuming and expensive.&lt;br&gt;
Can overfit if not properly trained.&lt;/p&gt;

&lt;p&gt;Real-Life Example**&lt;br&gt;
**&lt;br&gt;
A bank trains a model using past customer data labeled as "Loan Approved" or "Loan Rejected." The model predicts whether a new applicant should receive a loan.&lt;br&gt;
**&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Unsupervised Learning**
Definition&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Unsupervised learning uses unlabeled data. The algorithm tries to discover hidden patterns, relationships, or groupings in the data without knowing the correct output.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Working Process&lt;/strong&gt;&lt;br&gt;
Input unlabeled data.&lt;br&gt;
Identify similarities and differences.&lt;br&gt;
Form clusters or discover patterns.&lt;br&gt;
Analyze hidden structures.&lt;br&gt;
Types&lt;br&gt;
&lt;strong&gt;A. Clustering&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Groups similar data together.&lt;/p&gt;

&lt;p&gt;Examples&lt;/p&gt;

&lt;p&gt;Customer Segmentation&lt;br&gt;
Image Grouping&lt;br&gt;
News Article Categorization&lt;br&gt;
B. Association&lt;/p&gt;

&lt;p&gt;Finds relationships between variables.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Examples&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Market Basket Analysis&lt;br&gt;
Product Recommendation Systems&lt;br&gt;
Common Algorithms&lt;br&gt;
K-Means Clustering&lt;br&gt;
Hierarchical Clustering&lt;br&gt;
DBSCAN&lt;br&gt;
Apriori Algorithm&lt;br&gt;
Principal Component Analysis (PCA)&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Advantages&lt;/strong&gt;&lt;br&gt;
No labeled data required.&lt;br&gt;
Finds hidden patterns.&lt;br&gt;
Useful for exploratory data analysis.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Disadvantages&lt;/strong&gt;&lt;br&gt;
Results may be difficult to interpret.&lt;br&gt;
Accuracy is harder to evaluate.&lt;br&gt;
Sensitive to algorithm selection.&lt;br&gt;
Real-Life Example&lt;/p&gt;

&lt;p&gt;An online shopping website groups customers with similar purchasing behavior and recommends products accordingly.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Semi-Supervised Learning&lt;/strong&gt;&lt;br&gt;
Definition&lt;/p&gt;

&lt;p&gt;Semi-supervised learning combines a small amount of labeled data with a large amount of unlabeled data. It is useful when labeling data is expensive or difficult.&lt;/p&gt;

&lt;p&gt;Working Process**&lt;br&gt;
**Train the model with labeled data.&lt;br&gt;
Use unlabeled data to improve learning.&lt;br&gt;
Generate better predictions.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Applications&lt;/strong&gt;&lt;br&gt;
Medical Image Analysis&lt;br&gt;
Speech Recognition&lt;br&gt;
Face Recognition&lt;br&gt;
Text Classification&lt;br&gt;
Common Algorithms&lt;br&gt;
Self-Training&lt;br&gt;
Co-Training&lt;br&gt;
Label Propagation&lt;br&gt;
Graph-Based Methods&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Advantages&lt;/strong&gt;&lt;br&gt;
Requires fewer labeled samples.&lt;br&gt;
Better accuracy than unsupervised learning.&lt;br&gt;
Reduces labeling costs.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Disadvantages&lt;/strong&gt;&lt;br&gt;
Performance depends on the quality of labeled data.&lt;br&gt;
More complex than supervised learning.&lt;br&gt;
Incorrect labels can reduce accuracy.&lt;br&gt;
Real-Life Example&lt;/p&gt;

&lt;p&gt;A hospital has 500 labeled X-ray images and 20,000 unlabeled images. The model learns from both to improve disease detection.&lt;br&gt;
**&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Reinforcement Learning**
Definition&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Reinforcement learning is a learning technique where an agent learns by interacting with an environment. The agent receives rewards for good actions and penalties for bad actions, aiming to maximize the total reward.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Components&lt;/strong&gt;&lt;br&gt;
Agent: Learner or decision-maker.&lt;br&gt;
Environment: The system in which the agent operates.&lt;br&gt;
State: Current situation.&lt;br&gt;
Action: Decision taken by the agent.&lt;br&gt;
Reward: Feedback received after an action.&lt;br&gt;
Policy: Strategy used to choose actions.&lt;br&gt;
Working Process&lt;br&gt;
Observe the environment.&lt;br&gt;
Choose an action.&lt;br&gt;
Receive reward or penalty.&lt;br&gt;
Update the strategy.&lt;br&gt;
Repeat until the best policy is learned.&lt;br&gt;
Common Algorithms&lt;br&gt;
Q-Learning&lt;br&gt;
SARSA&lt;br&gt;
Deep Q Network (DQN)&lt;br&gt;
Policy Gradient Methods&lt;br&gt;
Actor-Critic Algorithms&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Advantages&lt;/strong&gt;&lt;br&gt;
Learns from experience.&lt;br&gt;
Suitable for sequential decision-making.&lt;br&gt;
Improves performance over time.&lt;/p&gt;

&lt;p&gt;*&lt;em&gt;**Disadvantages&lt;/em&gt;*&lt;br&gt;
**Requires many interactions with the environment.&lt;br&gt;
Computationally expensive.&lt;br&gt;
Training can take a long time.&lt;br&gt;
Applications&lt;br&gt;
Self-Driving Cars&lt;br&gt;
Robotics&lt;br&gt;
Game Playing (Chess, Go, Atari Games)&lt;br&gt;
Traffic Signal Control&lt;br&gt;
Recommendation Systems&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Real-Life Example&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A robot learns to navigate a room by receiving positive rewards for reaching its destination and penalties for hitting obstacles.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>HTML QUESTIONS</title>
      <dc:creator>ihsaan muhammed</dc:creator>
      <pubDate>Tue, 04 Aug 2026 15:51:20 +0000</pubDate>
      <link>https://dev.to/ihsaan_muhammed_18/html-questions-3ecn</link>
      <guid>https://dev.to/ihsaan_muhammed_18/html-questions-3ecn</guid>
      <description>&lt;p&gt;&lt;strong&gt;1. What is HTML?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Answer:&lt;/strong&gt;&lt;br&gt;
HTML (HyperText Markup Language) is the standard markup language used to create and structure web pages using elements called tags.&lt;/p&gt;


&lt;h2&gt;
  
  
  2. What is the latest version of HTML?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Answer:&lt;/strong&gt;&lt;br&gt;
The latest version is &lt;strong&gt;HTML5&lt;/strong&gt;, which introduced semantic elements, multimedia support, local storage, canvas, and improved APIs.&lt;/p&gt;


&lt;h2&gt;
  
  
  3. What is the difference between HTML and HTML5?
&lt;/h2&gt;

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

&lt;ul&gt;
&lt;li&gt;HTML5 supports audio and video without plugins.&lt;/li&gt;
&lt;li&gt;HTML5 introduced semantic tags like &lt;code&gt;&amp;lt;header&amp;gt;&lt;/code&gt;, &lt;code&gt;&amp;lt;section&amp;gt;&lt;/code&gt;, and &lt;code&gt;&amp;lt;footer&amp;gt;&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;HTML5 supports local storage.&lt;/li&gt;
&lt;li&gt;HTML5 includes Canvas and SVG for graphics.&lt;/li&gt;
&lt;/ul&gt;


&lt;h2&gt;
  
  
  4. What are HTML tags?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Answer:&lt;/strong&gt;&lt;br&gt;
HTML tags are keywords enclosed in angle brackets (&lt;code&gt;&amp;lt;&amp;gt;&lt;/code&gt;) that define the structure and content of a webpage.&lt;/p&gt;

&lt;p&gt;Example:&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;p&amp;gt;&lt;/span&gt;Hello World&lt;span class="nt"&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  5. What are HTML elements?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Answer:&lt;/strong&gt;&lt;br&gt;
An HTML element consists of the opening tag, content, and closing tag.&lt;/p&gt;

&lt;p&gt;Example:&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;h1&amp;gt;&lt;/span&gt;Welcome&lt;span class="nt"&gt;&amp;lt;/h1&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  6. What are attributes in HTML?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Answer:&lt;/strong&gt;&lt;br&gt;
Attributes provide additional information about HTML elements.&lt;/p&gt;

&lt;p&gt;Example:&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;img&lt;/span&gt; &lt;span class="na"&gt;src=&lt;/span&gt;&lt;span class="s"&gt;"image.jpg"&lt;/span&gt; &lt;span class="na"&gt;alt=&lt;/span&gt;&lt;span class="s"&gt;"Nature"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  7. What are semantic HTML elements?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Answer:&lt;/strong&gt;&lt;br&gt;
Semantic elements clearly describe their purpose.&lt;/p&gt;

&lt;p&gt;Examples:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;code&gt;&amp;lt;header&amp;gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;&amp;lt;nav&amp;gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;&amp;lt;section&amp;gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;&amp;lt;article&amp;gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;&amp;lt;footer&amp;gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;&amp;lt;main&amp;gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;


&lt;h2&gt;
  
  
  8. What is the difference between &lt;code&gt;&amp;lt;div&amp;gt;&lt;/code&gt; and &lt;code&gt;&amp;lt;span&amp;gt;&lt;/code&gt;?
&lt;/h2&gt;

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

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;code&gt;&amp;lt;div&amp;gt;&lt;/code&gt;&lt;/th&gt;
&lt;th&gt;&lt;code&gt;&amp;lt;span&amp;gt;&lt;/code&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Block-level element&lt;/td&gt;
&lt;td&gt;Inline element&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Starts on a new line&lt;/td&gt;
&lt;td&gt;Does not start on a new line&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Used for larger sections&lt;/td&gt;
&lt;td&gt;Used for small text portions&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;


&lt;h2&gt;
  
  
  9. What are block-level elements?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Answer:&lt;/strong&gt;&lt;br&gt;
They occupy the full width available and start on a new line.&lt;/p&gt;

&lt;p&gt;Examples:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;code&gt;&amp;lt;div&amp;gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;&amp;lt;p&amp;gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;&amp;lt;h1&amp;gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;&amp;lt;section&amp;gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;


&lt;h2&gt;
  
  
  10. What are inline elements?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Answer:&lt;/strong&gt;&lt;br&gt;
Inline elements only occupy the required width.&lt;/p&gt;

&lt;p&gt;Examples:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;code&gt;&amp;lt;span&amp;gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;&amp;lt;a&amp;gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;&amp;lt;strong&amp;gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;&amp;lt;img&amp;gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;


&lt;h2&gt;
  
  
  11. What is the purpose of the DOCTYPE declaration?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Answer:&lt;/strong&gt;&lt;br&gt;
It tells the browser which version of HTML is being used.&lt;/p&gt;

&lt;p&gt;Example:&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="cp"&gt;&amp;lt;!DOCTYPE html&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  12. What is the difference between &lt;code&gt;id&lt;/code&gt; and &lt;code&gt;class&lt;/code&gt;?
&lt;/h2&gt;

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

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;id&lt;/th&gt;
&lt;th&gt;class&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Unique&lt;/td&gt;
&lt;td&gt;Can be reused&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Used once&lt;/td&gt;
&lt;td&gt;Used multiple times&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Selected using &lt;code&gt;#&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Selected using &lt;code&gt;.&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;




&lt;h2&gt;
  
  
  13. What are lists in HTML?
&lt;/h2&gt;

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

&lt;p&gt;Three types:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Ordered List (&lt;code&gt;&amp;lt;ol&amp;gt;&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;Unordered List (&lt;code&gt;&amp;lt;ul&amp;gt;&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;Description List (&lt;code&gt;&amp;lt;dl&amp;gt;&lt;/code&gt;)&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  14. How do you create a hyperlink?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Answer:&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;a&lt;/span&gt; &lt;span class="na"&gt;href=&lt;/span&gt;&lt;span class="s"&gt;"https://example.com"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Visit&lt;span class="nt"&gt;&amp;lt;/a&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  15. How do you insert an image?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Answer:&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;img&lt;/span&gt; &lt;span class="na"&gt;src=&lt;/span&gt;&lt;span class="s"&gt;"photo.jpg"&lt;/span&gt; &lt;span class="na"&gt;alt=&lt;/span&gt;&lt;span class="s"&gt;"Photo"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  16. What is the difference between &lt;code&gt;&amp;lt;b&amp;gt;&lt;/code&gt; and &lt;code&gt;&amp;lt;strong&amp;gt;&lt;/code&gt;?
&lt;/h2&gt;

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

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;&amp;lt;b&amp;gt;&lt;/code&gt; makes text bold.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;&amp;lt;strong&amp;gt;&lt;/code&gt; makes text bold and indicates important content semantically.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  17. What is the difference between &lt;code&gt;&amp;lt;i&amp;gt;&lt;/code&gt; and &lt;code&gt;&amp;lt;em&amp;gt;&lt;/code&gt;?
&lt;/h2&gt;

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

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;&amp;lt;i&amp;gt;&lt;/code&gt; displays italic text.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;&amp;lt;em&amp;gt;&lt;/code&gt; displays emphasized text and carries semantic meaning.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  18. What are HTML forms?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Answer:&lt;/strong&gt;&lt;br&gt;
Forms collect user input.&lt;/p&gt;

&lt;p&gt;Example:&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;form&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;input&lt;/span&gt; &lt;span class="na"&gt;type=&lt;/span&gt;&lt;span class="s"&gt;"text"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/form&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  19. What are some common input types?
&lt;/h2&gt;

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

&lt;ul&gt;
&lt;li&gt;text&lt;/li&gt;
&lt;li&gt;password&lt;/li&gt;
&lt;li&gt;email&lt;/li&gt;
&lt;li&gt;number&lt;/li&gt;
&lt;li&gt;date&lt;/li&gt;
&lt;li&gt;checkbox&lt;/li&gt;
&lt;li&gt;radio&lt;/li&gt;
&lt;li&gt;file&lt;/li&gt;
&lt;li&gt;submit&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  20. What is the difference between GET and POST?
&lt;/h2&gt;

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

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;GET&lt;/th&gt;
&lt;th&gt;POST&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Data in URL&lt;/td&gt;
&lt;td&gt;Data in request body&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Less secure&lt;/td&gt;
&lt;td&gt;More secure&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Limited data&lt;/td&gt;
&lt;td&gt;Large data&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Used for fetching&lt;/td&gt;
&lt;td&gt;Used for submitting&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;




&lt;h2&gt;
  
  
  21. What is the purpose of the &lt;code&gt;alt&lt;/code&gt; attribute?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Answer:&lt;/strong&gt;&lt;br&gt;
The &lt;code&gt;alt&lt;/code&gt; attribute provides alternative text if an image cannot be displayed and improves accessibility.&lt;/p&gt;

&lt;p&gt;Example:&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;img&lt;/span&gt; &lt;span class="na"&gt;src=&lt;/span&gt;&lt;span class="s"&gt;"flower.jpg"&lt;/span&gt; &lt;span class="na"&gt;alt=&lt;/span&gt;&lt;span class="s"&gt;"Red Flower"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  22. What is the &lt;code&gt;&amp;lt;iframe&amp;gt;&lt;/code&gt; tag?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Answer:&lt;/strong&gt;&lt;br&gt;
The &lt;code&gt;&amp;lt;iframe&amp;gt;&lt;/code&gt; tag embeds another webpage within the current webpage.&lt;/p&gt;

&lt;p&gt;Example:&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;iframe&lt;/span&gt; &lt;span class="na"&gt;src=&lt;/span&gt;&lt;span class="s"&gt;"page.html"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&amp;lt;/iframe&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  23. What are HTML comments?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Answer:&lt;/strong&gt;&lt;br&gt;
Comments are ignored by browsers and used for documentation.&lt;/p&gt;

&lt;p&gt;Example:&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;!-- This is a comment --&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  24. What are the new multimedia elements in HTML5?
&lt;/h2&gt;

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

&lt;ul&gt;
&lt;li&gt;&lt;code&gt;&amp;lt;audio&amp;gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;&amp;lt;video&amp;gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;&amp;lt;source&amp;gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;&amp;lt;track&amp;gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These allow multimedia without external plugins.&lt;/p&gt;




&lt;h2&gt;
  
  
  25. Why is HTML important in web development?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Answer:&lt;/strong&gt;&lt;br&gt;
HTML provides the structure of every web page. It works with CSS for styling and JavaScript for interactivity, forming the foundation of modern web development.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>JVM</title>
      <dc:creator>ihsaan muhammed</dc:creator>
      <pubDate>Sat, 18 Jul 2026 14:06:03 +0000</pubDate>
      <link>https://dev.to/ihsaan_muhammed_18/jvm-3p7e</link>
      <guid>https://dev.to/ihsaan_muhammed_18/jvm-3p7e</guid>
      <description>&lt;p&gt;The &lt;strong&gt;Java Virtual Machine&lt;/strong&gt; (JVM) is a software-based engine that executes Java programs. It allows Java applications to run on any operating system without modification, making Java platform-independent through the principle of "Write Once, Run Anywhere (WORA)."&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;STEP -- 1&lt;/strong&gt;&lt;br&gt;
Write Java Code&lt;/p&gt;

&lt;p&gt;Source code is written in a .&lt;strong&gt;java file.&lt;/strong&gt;&lt;br&gt;
**&lt;br&gt;
STEP -- 2**&lt;br&gt;
Compile&lt;/p&gt;

&lt;p&gt;The Java compiler (javac) converts the source code into bytecode (.class files).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;STEP -- 3&lt;/strong&gt;&lt;br&gt;
Execute&lt;/p&gt;

&lt;p&gt;The JVM loads the bytecode, verifies it, and executes it by translating it into machine code for the host operating system.&lt;/p&gt;

&lt;p&gt;Advantages of the &lt;strong&gt;JVM&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;1) Platform independence&lt;br&gt;
2) Automatic memory management (Garbage Collection)&lt;br&gt;
3) Security through bytecode verification&lt;br&gt;
4) Performance optimization with the JIT compiler&lt;br&gt;
5) Multithreading support&lt;/p&gt;

</description>
      <category>jvm</category>
      <category>backend</category>
      <category>devops</category>
    </item>
    <item>
      <title>HTML ATTRIBUTES</title>
      <dc:creator>ihsaan muhammed</dc:creator>
      <pubDate>Wed, 15 Jul 2026 15:15:49 +0000</pubDate>
      <link>https://dev.to/ihsaan_muhammed_18/html-attributes-3m9g</link>
      <guid>https://dev.to/ihsaan_muhammed_18/html-attributes-3m9g</guid>
      <description>&lt;p&gt;OUTLINE OF HTML ATTRIBUTES&lt;/p&gt;

&lt;p&gt;HTML attributes are special properties that provide additional information about HTML elements and define how they behave or appear on a web page. They are placed inside the opening tag of an HTML element and are written as &lt;strong&gt;name="value"&lt;/strong&gt; pairs. Attributes help developers create interactive, accessible, and well-structured web pages. Common attributes include &lt;code&gt;href&lt;/code&gt; for hyperlinks, &lt;code&gt;src&lt;/code&gt; for images, &lt;code&gt;alt&lt;/code&gt; for alternative image text, &lt;code&gt;id&lt;/code&gt; for uniquely identifying elements, and &lt;code&gt;class&lt;/code&gt; for grouping elements for CSS styling. Other useful attributes such as &lt;code&gt;title&lt;/code&gt;, &lt;code&gt;style&lt;/code&gt;, &lt;code&gt;placeholder&lt;/code&gt;, &lt;code&gt;required&lt;/code&gt;, &lt;code&gt;disabled&lt;/code&gt;, &lt;code&gt;width&lt;/code&gt;, &lt;code&gt;height&lt;/code&gt;, and &lt;code&gt;target&lt;/code&gt; enhance the functionality and presentation of web content. HTML also provides global attributes like &lt;code&gt;lang&lt;/code&gt; and &lt;code&gt;data-*&lt;/code&gt;, which can be used with most HTML elements. Proper use of HTML attributes improves website usability, accessibility, search engine optimization (SEO), and overall user experience, making them an essential part of modern web development.&lt;/p&gt;

&lt;p&gt;SOME MAJOR TAGS ARE LISTED BELOW&lt;/p&gt;

&lt;p&gt;1) href --&amp;gt; used to specify a hyperlink or a URL&lt;br&gt;
2) alt --&amp;gt; Provides alternative text for an image if it cannot be displayed. It also improves accessibility for screen readers.&lt;br&gt;
3)class --&amp;gt; Groups one or more HTML elements under a common name for applying CSS styles or JavaScript functionality.&lt;br&gt;
4) title --&amp;gt; Displays additional information as a tooltip when the user hovers over an element.&lt;br&gt;
5)lang --&amp;gt; Specifies the language of the content in an HTML element, helping browsers and search engines understand the text&lt;br&gt;
6)style --&amp;gt; Applies inline CSS styles directly to an HTML element.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>BLACK BOX TESTING</title>
      <dc:creator>ihsaan muhammed</dc:creator>
      <pubDate>Tue, 14 Jul 2026 15:04:12 +0000</pubDate>
      <link>https://dev.to/ihsaan_muhammed_18/black-box-testing-50ge</link>
      <guid>https://dev.to/ihsaan_muhammed_18/black-box-testing-50ge</guid>
      <description>&lt;h1&gt;
  
  
  Black Box: The Mystery Behind Hidden Systems
&lt;/h1&gt;

&lt;p&gt;A &lt;strong&gt;black box&lt;/strong&gt; is a system or device whose internal workings are unknown or not visible to the user. People can observe the inputs given to the system and the outputs it produces, but the process that happens inside remains hidden. Black boxes are used in many fields, including aviation, artificial intelligence, electronics, and software engineering. In aircraft, the flight data recorder, commonly called the black box, stores important flight information that helps investigators determine the cause of accidents. In artificial intelligence, some machine learning models are also called black boxes because they make decisions without clearly explaining how they arrived at them. While black-box systems are often powerful and efficient, they can raise concerns about transparency, trust, and accountability. Understanding and improving the explainability of black-box systems is becoming increasingly important as technology continues to play a larger role in everyday life.&lt;/p&gt;

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