<?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: Amir Sohel</title>
    <description>The latest articles on DEV Community by Amir Sohel (@amirsohel007).</description>
    <link>https://dev.to/amirsohel007</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%2F365411%2Fd54d4395-bd22-46cb-b40c-170c85aa36a9.jpeg</url>
      <title>DEV Community: Amir Sohel</title>
      <link>https://dev.to/amirsohel007</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/amirsohel007"/>
    <language>en</language>
    <item>
      <title>JavaScript 100 days code challenge </title>
      <dc:creator>Amir Sohel</dc:creator>
      <pubDate>Sun, 09 Jan 2022 16:52:22 +0000</pubDate>
      <link>https://dev.to/amirsohel007/javascript-100-days-code-challenge-4pmh</link>
      <guid>https://dev.to/amirsohel007/javascript-100-days-code-challenge-4pmh</guid>
      <description>&lt;p&gt;Let's solove 100 code probelms each day to keep consistency.&lt;/p&gt;

&lt;p&gt;It's just started 10 days before, I am kee adding solution here 🤟🏻&lt;/p&gt;

&lt;p&gt;GitHub Repository 🐥 👇🏻👇🏻👇🏻&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/amirSohel007/100-code-days"&gt;https://github.com/amirSohel007/100-code-days&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;each probelm has multiple solutions. If you have some other solution in your mind then fork the repo and add your solution and raise PR for it&lt;/p&gt;

&lt;h1&gt;
  
  
  JS_Lovers ❤️❤️
&lt;/h1&gt;

</description>
    </item>
    <item>
      <title>How to get DOM element text value in cypress</title>
      <dc:creator>Amir Sohel</dc:creator>
      <pubDate>Sat, 01 Jan 2022 14:11:06 +0000</pubDate>
      <link>https://dev.to/amirsohel007/how-to-get-dom-element-text-value-in-cypress-30gn</link>
      <guid>https://dev.to/amirsohel007/how-to-get-dom-element-text-value-in-cypress-30gn</guid>
      <description>&lt;h2&gt;
  
  
  Hi Folk 🙋🏼
&lt;/h2&gt;

&lt;p&gt;Now days develoepr has to write test cases for their component code and for test their own functionality.&lt;/p&gt;

&lt;p&gt;there are many tools in market like &lt;br&gt;
&lt;code&gt;Chai&lt;/code&gt; &lt;code&gt;Moka&lt;/code&gt; &lt;code&gt;Jasmine&lt;/code&gt; &lt;code&gt;Karma&lt;/code&gt; &lt;code&gt;Jest&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;but Cypress is single tool which is running on top of these above tools. becuase internally cypress use these mentioned tools including Jquery.&lt;/p&gt;

&lt;p&gt;Cypress allow you to test your application e2e in browser with very smooth flow.&lt;/p&gt;

&lt;p&gt;but sometime while working with cypress we need to get a element and match it's value with another element dynamically so how we can achive that&lt;/p&gt;

&lt;p&gt;here I am going to show you how we can take innerText of any DOM element in cypress&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;cy.get(['YOUR_DOM_ELEMENT']).then(elm =&amp;gt; {
  cy.get(['YOUR_DOM_ELEMENT']).should('has.text', elm[0].innerText)
});
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>javascript</category>
      <category>testing</category>
      <category>programming</category>
    </item>
    <item>
      <title>Adding our own custom methods in JavaScript prototype class </title>
      <dc:creator>Amir Sohel</dc:creator>
      <pubDate>Sat, 02 May 2020 10:01:45 +0000</pubDate>
      <link>https://dev.to/amirsohel007/our-own-custom-methods-in-javascript-prototype-class-2274</link>
      <guid>https://dev.to/amirsohel007/our-own-custom-methods-in-javascript-prototype-class-2274</guid>
      <description>&lt;p&gt;I have a question regarding JavaScript.&lt;/p&gt;

&lt;p&gt;is this good practice to add our own method in prototype class&lt;/p&gt;

&lt;p&gt;like I have added my own custom method in String prototype class like this&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;String.prototype.mirror = function () {
  let str = this.toString() ;
 return str.split('').reverse().join('')
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;and now i am using my own method with any string value like &lt;/p&gt;

&lt;p&gt;"hello".mirror() &lt;br&gt;
"olleh"&lt;/p&gt;

</description>
    </item>
    <item>
      <title>How can I declare a global variable in react app so that I can access it anywhere in the application</title>
      <dc:creator>Amir Sohel</dc:creator>
      <pubDate>Mon, 20 Apr 2020 03:59:28 +0000</pubDate>
      <link>https://dev.to/amirsohel007/how-can-i-declare-a-global-variable-in-react-app-so-that-i-can-access-it-anywhere-in-the-application-2kjo</link>
      <guid>https://dev.to/amirsohel007/how-can-i-declare-a-global-variable-in-react-app-so-that-i-can-access-it-anywhere-in-the-application-2kjo</guid>
      <description>&lt;p&gt;I want to declare a global variable in application where I want to store my API URL and it should accessible for all components&lt;/p&gt;

</description>
      <category>react</category>
    </item>
  </channel>
</rss>
