<?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: Zero Hour</title>
    <description>The latest articles on DEV Community by Zero Hour (@zerohour).</description>
    <link>https://dev.to/zerohour</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%2F991784%2F7c6ad967-048e-4382-9394-519a26dd4952.jpg</url>
      <title>DEV Community: Zero Hour</title>
      <link>https://dev.to/zerohour</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/zerohour"/>
    <language>en</language>
    <item>
      <title>What wrong with this codes?</title>
      <dc:creator>Zero Hour</dc:creator>
      <pubDate>Mon, 19 Dec 2022 01:44:02 +0000</pubDate>
      <link>https://dev.to/zerohour/what-wrong-with-this-codes-18oi</link>
      <guid>https://dev.to/zerohour/what-wrong-with-this-codes-18oi</guid>
      <description>&lt;p&gt;It doesn't output. What's the functional fix to it?&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const discountFunc = () =&amp;gt; {
    let productPrice = 1000;
    let discountCode = ABCD;
    if (productPrice == 1000 &amp;amp;&amp;amp; discountCode == ABCD) {
            return document.getElementById("checkOut").innerHTML = productPrice / 2;
        } else {
            return document.getElementById("checkOut").innerHTML = productPrice;
        }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;section&amp;gt;
                &amp;lt;button onclick="discountFunc()"&amp;gt;Get discount&amp;lt;/button&amp;gt;
                &amp;lt;p id="checkOut"&amp;gt;&amp;lt;/p&amp;gt;
            &amp;lt;/section&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



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