<?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: Asad Ullah</title>
    <description>The latest articles on DEV Community by Asad Ullah (@sayyedasad786).</description>
    <link>https://dev.to/sayyedasad786</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F874336%2F8c54d552-9b10-41f5-b1a4-e7323e4ba7f1.jpeg</url>
      <title>DEV Community: Asad Ullah</title>
      <link>https://dev.to/sayyedasad786</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sayyedasad786"/>
    <language>en</language>
    <item>
      <title>JavaScript more efficient and readable code for make a calculator with only 20 lines with</title>
      <dc:creator>Asad Ullah</dc:creator>
      <pubDate>Sat, 21 Jan 2023 17:46:02 +0000</pubDate>
      <link>https://dev.to/sayyedasad786/javascript-more-efficient-code-for-make-a-calculator-with-only-20-lines-3fpc</link>
      <guid>https://dev.to/sayyedasad786/javascript-more-efficient-code-for-make-a-calculator-with-only-20-lines-3fpc</guid>
      <description>&lt;h2&gt;
  
  
  &lt;strong&gt;Eval Function for a Calculator&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://saucalc.netlify.app/" rel="noopener noreferrer"&gt;Click Here for visit the calculator and its code&lt;/a&gt;&lt;br&gt;
This is very very best way to improve and make efficient for our code. The eval() function is very helpful to make efficient, readable and maintainable. As we know about eval() function the eval() is a function property of the global object. The argument of the eval() function is a string. It will evaluate the source string as a script body, which means both statements and expressions are allowed. It returns the completion value of the code. For expressions, it's the value the expression evaluates to.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;Comment me if you have impressive by this calculator.&lt;/strong&gt;
&lt;/h2&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;&lt;a href="https://saucalc.netlify.app/" rel="noopener noreferrer"&gt;Click Here for visit the calculator and its code&lt;/a&gt;&lt;/strong&gt;
&lt;/h2&gt;

</description>
      <category>gratitude</category>
    </item>
    <item>
      <title>JavaScript Tips and Tricks: difference between VAR and LET variables Concept.</title>
      <dc:creator>Asad Ullah</dc:creator>
      <pubDate>Tue, 13 Sep 2022 11:49:52 +0000</pubDate>
      <link>https://dev.to/sayyedasad786/javascript-tips-and-tricks-difference-between-var-and-let-variables-concept-2hnb</link>
      <guid>https://dev.to/sayyedasad786/javascript-tips-and-tricks-difference-between-var-and-let-variables-concept-2hnb</guid>
      <description>&lt;h2&gt;
  
  
  &lt;strong&gt;Difference between &lt;code&gt;VAR and LET&lt;/code&gt;&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;As we know in order to declare a variable in JavaScript we have two options either declare with var or declare with let. Now the question is when to use var and when to use let. What are the major difference between both.&lt;/p&gt;

&lt;p&gt;The main difference between let and var is that scope of a variable defined with let is limited to the block in which it is declared while variable declared with var has the global scope. So we can say that var is rather a keyword which defines a variable globally regardless of block scope.&lt;/p&gt;

&lt;p&gt;The scope of let not only limited to the block in which it is defined but variable with let also do not get added with global window object even if it get declared outside of any block. But we can access variable with var from window object if it is defined globally.&lt;/p&gt;

&lt;p&gt;Due to limited scope let variables are usually used when there is limited use of those variables such as in for loops, while loops or inside the scope of if conditions etc while var variable is used when value of variable need to be less change and used to accessed globally.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Follow this code to check the differentiate between VAR and LET&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="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="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;hello&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;// globally scoped&lt;/span&gt;
&lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="nx"&gt;b&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;world&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;// globally scoped&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="nb"&gt;window&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;// undefined&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="nb"&gt;window&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;b&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt; &lt;span class="c1"&gt;// 'world'&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="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;hello&lt;/span&gt;&lt;span class="dl"&gt;'&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="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;world&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;// No problem, 'hello' is replaced.&lt;/span&gt;
&lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="nx"&gt;b&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;hello&lt;/span&gt;&lt;span class="dl"&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;b&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;world&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;// SyntaxError: Identifier 'b' has already been declared&lt;/span&gt;

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

&lt;/div&gt;



</description>
    </item>
    <item>
      <title>JavaScript Const re-assignment in Array with full Concepts</title>
      <dc:creator>Asad Ullah</dc:creator>
      <pubDate>Thu, 01 Sep 2022 19:40:36 +0000</pubDate>
      <link>https://dev.to/sayyedasad786/javascript-const-re-assignment-in-array-with-full-concepts-no1</link>
      <guid>https://dev.to/sayyedasad786/javascript-const-re-assignment-in-array-with-full-concepts-no1</guid>
      <description>&lt;h2&gt;
  
  
  &lt;strong&gt;Variable &lt;code&gt;Const&lt;/code&gt;&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;As we know that the "const" keyword was included in &lt;u&gt;ES6(2016)&lt;/u&gt;. The const variable cannot be reassign the value. JavaScript const variables must be assigned a value when they are declared like this...&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;firstName&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Sayyed Asad&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;But this is a general rule, always declare a variable with const unless you know that the value will change.&lt;br&gt;
Use const when you declare...&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;New Array&lt;/li&gt;
&lt;li&gt;New Object&lt;/li&gt;
&lt;li&gt;New Function&lt;/li&gt;
&lt;li&gt;New Regexp&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;How would be re-assignment of const in an array and what's the reason about that behind the concept of this topic?&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;developers&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="s1"&gt;Sayyed Asad&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="s1"&gt;Nisar&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="s1"&gt;Toqeer&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;];&lt;/span&gt;
&lt;span class="nx"&gt;developers&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="o"&gt;=&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;Jonas&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;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffz7wieqf03952ygvq6oe.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffz7wieqf03952ygvq6oe.png" alt="Image description" width="396" height="204"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;So, first of all as a good experience in the JavaScript. I should be inform you here is const is manipulate. But I was still able to change one element of the Array here from Toqeer to Jonas.That is only primitive value. But an Array is not a primitive value. And so we can actually always change it so we can mutate it.&lt;/p&gt;

&lt;p&gt;_&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;If you have some knowledge from my article. So, please follow me and share this post and like and comment on bellow this post.&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;_&lt;/p&gt;

</description>
      <category>web3</category>
      <category>javascript</category>
      <category>programming</category>
      <category>webdev</category>
    </item>
    <item>
      <title>HTML Tips And Trick For Everyone</title>
      <dc:creator>Asad Ullah</dc:creator>
      <pubDate>Wed, 24 Aug 2022 17:38:26 +0000</pubDate>
      <link>https://dev.to/sayyedasad786/html-tips-and-trick-for-everyone-3lc3</link>
      <guid>https://dev.to/sayyedasad786/html-tips-and-trick-for-everyone-3lc3</guid>
      <description>&lt;h2&gt;
  
  
  &lt;strong&gt;Title Bar &lt;code&gt;Add Icon&lt;/code&gt;&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;The many beginners have no any idea to about title bar's icon. But this is vary simple trick to add any icon on title bar just download any letter image for practice and do follow my code.&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;head&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;title&amp;gt;&lt;/span&gt;Sayyed Asad Ullah&lt;span class="nt"&gt;&amp;lt;/title&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;link&lt;/span&gt; &lt;span class="na"&gt;rel=&lt;/span&gt;&lt;span class="s"&gt;"icon"&lt;/span&gt; &lt;span class="na"&gt;href=&lt;/span&gt;&lt;span class="s"&gt;"letter-A.png"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/head&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;``&lt;br&gt;
&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpd68q85fspzevthcj1rj.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpd68q85fspzevthcj1rj.png" alt="Image description" width="728" height="69"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;Add Video in Website &lt;code&gt;Video Tag&lt;/code&gt;&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;When we need to add a video in our site. So then we  need to use video element. But in HTML 5 we can add a video using with video element. But in this case we apply using with source element and source attribute. Because the reason is about that to add a video we need both these mark code.&lt;/p&gt;

&lt;p&gt;`&lt;code&gt;&lt;/code&gt;html&lt;/p&gt;


   


&lt;p&gt;&lt;code&gt;&lt;/code&gt;`&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7fm6598ju26tv9rgt8wu.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7fm6598ju26tv9rgt8wu.gif" alt="Image description" width="880" height="385"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;video and audio &lt;code&gt;controls attribute&lt;/code&gt;&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;We can control our audio and video volume as low or high as we want with using controls attribute.In addition, we can also pause or play our video and audio with using controls attribute.&lt;/p&gt;

&lt;p&gt;`&lt;code&gt;&lt;/code&gt;html&lt;/p&gt;


   


&lt;p&gt;&lt;code&gt;&lt;/code&gt;`&lt;/p&gt;

&lt;h2&gt;
  
  
  Meta tag &lt;code&gt;SEO META tag&lt;/code&gt;
&lt;/h2&gt;

&lt;p&gt;Add meta descriptions in the head of your Html to have an indirect impact on search engine optimization meta description represents the text that appears beneath the site name on search engine result page. like when you search on google any text or any content.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9pf9j0dqq99l7a86nncq.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9pf9j0dqq99l7a86nncq.png" alt="Image description" width="800" height="584"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>html</category>
      <category>webdev</category>
      <category>web3</category>
      <category>beginners</category>
    </item>
  </channel>
</rss>
