Clock in Javascript

I have made a clock in javascript but its a static clock. What changes I need to do in the following code so that it updates with every second. Javascript …</p> </div> </article> </main><!-- .site-main --> </div> <div class="cell cell--4@medium"> <aside class="widget-area blog-sidebar" role="complementary" aria-label="Blog Sidebar"> <a class="screen-reader-text" href="#site-footer">Skip to footer</a> <section id="recent-posts-2" class="widget widget_recent_entries"> <h2 class="widget-title">Recent Articles</h2> <ul> <li> <a href="https://www.tutorialguruji.com/python/item-in-list-in-dictionary-python/" data-wpel-link="internal">Item in list in dictionary Python</a> </li> <li> <a href="https://www.tutorialguruji.com/python/how-do-i-reference-first-argument-of-an-enumeration/" data-wpel-link="internal">how do I reference first argument of an enumeration?</a> </li> <li> <a href="https://www.tutorialguruji.com/python/convert-an-array-column-into-multiple-columns-python/" data-wpel-link="internal">Convert an array column into multiple columns Python</a> </li> <li> <a href="https://www.tutorialguruji.com/python/how-to-compute-counts-on-a-pandas-dataframe-column-in-python-given-an-input-list-of-values/" data-wpel-link="internal">How to compute counts on a pandas DataFrame column in Python, given an input list of values?</a> </li> <li> <a href="https://www.tutorialguruji.com/python/how-to-display-legend-in-toolbox-in-charts-js/" data-wpel-link="internal">How to display legend in toolbox in Charts.js?</a> </li> </ul> </section><section id="categories-2" class="widget widget_categories"><h2 class="widget-title">What You Want To Learn?</h2> <ul> <li class="cat-item cat-item-2919"><a href="https://www.tutorialguruji.com/category/android/" title="Android Questions and Answers" data-wpel-link="internal">Android</a> </li> <li class="cat-item cat-item-3079"><a href="https://www.tutorialguruji.com/category/angularjs/" title="AngularJS Questions and Answers" data-wpel-link="internal">AngularJS</a> </li> <li class="cat-item cat-item-543"><a href="https://www.tutorialguruji.com/category/bitcoin-core/" title="Bitcoin Core Questions And Answers" data-wpel-link="internal">Bitcoin Core</a> </li> <li class="cat-item cat-item-618"><a href="https://www.tutorialguruji.com/category/bitcoin-exchanges/" title="Bitcoin Exchanges Questions and Answers" data-wpel-link="internal">Bitcoin Exchanges</a> </li> <li class="cat-item cat-item-587"><a href="https://www.tutorialguruji.com/category/bitcoin-security/" title="Bitcoin Security Questions and Answers" data-wpel-link="internal">Bitcoin Security</a> </li> <li class="cat-item cat-item-607"><a href="https://www.tutorialguruji.com/category/bitcoin-transaction-fees/" title="Bitcoin Transaction Fees Questions and Answers" data-wpel-link="internal">Bitcoin Transaction Fees</a> </li> <li class="cat-item cat-item-571"><a href="https://www.tutorialguruji.com/category/bitcoin-transactions/" data-wpel-link="internal">Bitcoin Transactions</a> </li> <li class="cat-item cat-item-2781"><a href="https://www.tutorialguruji.com/category/c-sharp/" title="C# Questions and Answers" data-wpel-link="internal">C#</a> </li> <li class="cat-item cat-item-2834"><a href="https://www.tutorialguruji.com/category/cpp/" data-wpel-link="internal">C++</a> </li> <li class="cat-item cat-item-4"><a href="https://www.tutorialguruji.com/category/dbms/" title="Database Management System" data-wpel-link="internal">DBMS</a> </li> <li class="cat-item cat-item-352"><a href="https://www.tutorialguruji.com/category/for-loop-questions/" data-wpel-link="internal">for loop</a> </li> <li class="cat-item cat-item-1915"><a href="https://www.tutorialguruji.com/category/grammar/" title="Free Grammar Tutorial - Learn more about the English language at online grammar lessons and tutorials. " data-wpel-link="internal">Grammar</a> </li> <li class="cat-item cat-item-3009"><a href="https://www.tutorialguruji.com/category/html/" title="HTML Questions and Answers" data-wpel-link="internal">HTML</a> </li> <li class="cat-item cat-item-1"><a href="https://www.tutorialguruji.com/category/java/" title="Java Questions and Answers" data-wpel-link="internal">Java</a> </li> <li class="cat-item cat-item-6"><a href="https://www.tutorialguruji.com/category/javascript/" title="JavaScript Questions And Answers" data-wpel-link="internal">JavaScript</a> </li> <li class="cat-item cat-item-3037"><a href="https://www.tutorialguruji.com/category/jquery/" title="jQuery Questions and Answers" data-wpel-link="internal">jQuery</a> </li> <li class="cat-item cat-item-629"><a href="https://www.tutorialguruji.com/category/linux-questions/" title="Linux Questions and Answers" data-wpel-link="internal">Linux</a> </li> <li class="cat-item cat-item-496"><a href="https://www.tutorialguruji.com/category/mathematics-real-analysis-questions/" title="Mathematics Real Analysis Questions" data-wpel-link="internal">Mathematics Real Analysis</a> </li> <li class="cat-item cat-item-3180"><a href="https://www.tutorialguruji.com/category/node-js/" data-wpel-link="internal">Node.js</a> </li> <li class="cat-item cat-item-5"><a href="https://www.tutorialguruji.com/category/php/" title="PHP Questions and Answers" data-wpel-link="internal">PHP</a> </li> <li class="cat-item cat-item-2027"><a href="https://www.tutorialguruji.com/category/python/" title="Python Questions and Answers" data-wpel-link="internal">Python</a> </li> <li class="cat-item cat-item-3235"><a href="https://www.tutorialguruji.com/category/react-js/" title="React JS Questions and Answers" data-wpel-link="internal">React JS</a> </li> <li class="cat-item cat-item-711"><a href="https://www.tutorialguruji.com/category/shell-script/" title="Shell Script Questions And Answers" data-wpel-link="internal">Shell Script</a> </li> <li class="cat-item cat-item-3670"><a href="https://www.tutorialguruji.com/category/travel/" title="Travel Questions and Answers" data-wpel-link="internal">Travel</a> </li> <li class="cat-item cat-item-3159"><a href="https://www.tutorialguruji.com/category/wordpress/" title="WordPress Questions and Answers" data-wpel-link="internal">WordPress</a> </li> </ul> </section></aside><!-- .widget-area --> </div> </div> </div> <footer class="site-footer" id="site-footer" role="contentinfo"> <aside class="footer-widgets" role="complementary" aria-label="Footer"> <div class="container container-default-widgets"> <div id="footer-area-1" class="footer-area-1 widget-area-footer grid-auto" role="complementary"> <section id="custom_html-2" class="widget_text widget widget_custom_html"><h2 class="widget-title">Contact Details</h2><div class="textwidget custom-html-widget"><b>Web:</b> <a href="https://www.tutorialguruji.com/" data-wpel-link="internal">tutorialguruji.com</a> <br /> For Advertisement - <a href="https://www.tutorialguruji.com/contact-us/" data-wpel-link="internal">Contact Us Today</a>.</div></section> </div><!-- .widget-area --> <div id="footer-area-2" class="footer-area-2 widget-area-footer grid-auto" role="complementary"> <section id="custom_html-3" class="widget_text widget widget_custom_html"><div class="textwidget custom-html-widget"></div></section> </div><!-- .widget-area --> </div><!-- .grid-wrapper --> </aside><!-- .footer-widgets-wrapper --> <div class="site-info"> <span class="site-designer"> </span> <a href="http://www.tutorialguruji.com/" data-wpel-link="internal">Tutorial Guruji</a> </div><!-- .site-info --> </footer><!-- .site-footer --> <script type='text/javascript' id='contact-form-7-js-extra'> /* <![CDATA[ */ var wpcf7 = {"apiSettings":{"root":"https:\/\/www.tutorialguruji.com\/wp-json\/contact-form-7\/v1","namespace":"contact-form-7\/v1"}}; /* ]]> */ </script> <script type='text/javascript' src='https://www.tutorialguruji.com/wp-content/plugins/contact-form-7/includes/js/scripts.js?ver=5.3.2' id='contact-form-7-js'></script> <script type='text/javascript' src='https://www.tutorialguruji.com/wp-content/plugins/wp-codemirror-block/vendor/codemirror/lib/codemirror.min.js?ver=5.40.5' id='codemirror-js'></script> <script type='text/javascript' id='codemirror-autoload-assets-js-before'> var wpcm = {"plugin_url":"https://www.tutorialguruji.com/wp-content/plugins/wp-codemirror-block","assets":[],"panelOptions":{"showPanel":true,"languageLabel":false,"runButton":false,"fullScreenButton":false,"copyButton":true},"view":"public"} </script> <script type='text/javascript' src='https://www.tutorialguruji.com/wp-content/plugins/wp-codemirror-block/assets/js/autoLoadAssets.min.js?ver=1612775107' id='codemirror-autoload-assets-js'></script> <script type='text/javascript' src='https://www.tutorialguruji.com/wp-content/plugins/wp-codemirror-block/assets/js/init.min.js?ver=1612775107' id='codemirror-init-js'></script> <script type='text/javascript' src='https://www.tutorialguruji.com/wp-content/themes/learnmore/assets/scripts/bundle.min.js?ver=1.0.4' id='learnmore-scripts-js'></script> <script type='text/javascript' src='https://www.tutorialguruji.com/wp-includes/js/wp-embed.min.js?ver=5.6.2' id='wp-embed-js'></script> <svg xmlns="http://www.w3.org/2000/svg" style="position: absolute; width: 0; height: 0;" aria-hidden="true"> <symbol id="icon-arrow-down" viewBox="0 0 1792 1792"><path d="M1395 736q0 13-10 23l-466 466q-10 10-23 10t-23-10L407 759q-10-10-10-23t10-23l50-50q10-10 23-10t23 10l393 393 393-393q10-10 23-10t23 10l50 50q10 10 10 23z"/></symbol> <symbol id="icon-bars" viewBox="0 0 768 1024"><path d="M0 192v128h768V192H0zm0 384h768V448H0v128zm0 256h768V704H0v128z"/></symbol> <symbol id="icon-calendar" viewBox="0 0 512 512"><path fill="none" d="M80 112v64h352v-64"/><path d="M352 96V64h-16v32H176V64h-16v32H64v352h384V96h-96zm80 336H80V192h352v240zm0-256H80v-64h80v32h16v-32h160v32h16v-32h80v64z"/></symbol> <symbol id="icon-close" viewBox="0 0 640 1024"><path d="M640 320L512 192 320 384 128 192 0 320l192 192L0 704l128 128 192-192 192 192 128-128-192-192 192-192z"/></symbol> <symbol id="icon-news" viewBox="0 0 32 32"><path d="M4 32h24a2 2 0 002-2V2a2 2 0 00-2-2H4a2 2 0 00-2 2v28a2 2 0 002 2zM4 2h24v28H4V2zm19 4h-8a1 1 0 000 2h8a1 1 0 000-2zm0 6H9a1 1 0 000 2h14a1 1 0 000-2zm0 6H9a1 1 0 000 2h14a1 1 0 000-2zm0 6H9a1 1 0 000 2h14a1 1 0 000-2z"/></symbol> <symbol id="icon-pin" viewBox="0 0 24 24"><path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0118 0z"/><circle cx="12" cy="10" r="3"/></symbol> <symbol id="icon-search-icon" viewBox="0 0 20 20"><circle cx="9" cy="9" r="7" fill="none"/><path fill="none" d="M14 14l4 4-4-4z"/></symbol> <symbol id="icon-tags" viewBox="0 0 1024 1024"><path d="M477.5 694l311.9-311.8-19-224.6-224.6-19-311.9 311.9L477.5 694zm116-415.5a47.81 47.81 0 0133.9-33.9c16.6-4.4 34.2.3 46.4 12.4a47.93 47.93 0 0112.4 46.4 47.81 47.81 0 01-33.9 33.9c-16.6 4.4-34.2-.3-46.4-12.4a48.3 48.3 0 01-12.4-46.4z" fill-opacity=".15" fill="#626262"/><path d="M476.6 792.6c-1.7-.2-3.4-1-4.7-2.3L137.7 456.1a8.03 8.03 0 010-11.3L515.9 66.6c1.2-1.3 2.9-2.1 4.7-2.3h-.4c-2.3-.2-4.7.6-6.3 2.3L135.7 444.8a8.03 8.03 0 000 11.3l334.2 334.2c1.8 1.9 4.3 2.6 6.7 2.3z" fill-opacity=".15" fill="#626262"/><path d="M889.7 539.8l-39.6-39.5a8.03 8.03 0 00-11.3 0l-362 361.3-237.6-237a8.03 8.03 0 00-11.3 0l-39.6 39.5a8.03 8.03 0 000 11.3l243.2 242.8 39.6 39.5c3.1 3.1 8.2 3.1 11.3 0l407.3-406.6c3.1-3.1 3.1-8.2 0-11.3zM652.3 337.3a47.81 47.81 0 0033.9-33.9c4.4-16.6-.3-34.2-12.4-46.4a47.93 47.93 0 00-46.4-12.4 47.81 47.81 0 00-33.9 33.9c-4.4 16.6.3 34.2 12.4 46.4a48.3 48.3 0 0046.4 12.4z" fill="#626262"/><path d="M137.7 444.8a8.03 8.03 0 000 11.3l334.2 334.2c1.3 1.3 2.9 2.1 4.7 2.3 2.4.3 4.8-.5 6.6-2.3L861.4 412c1.7-1.7 2.5-4 2.3-6.3l-25.5-301.4c-.7-7.8-6.8-13.9-14.6-14.6L522.2 64.3h-1.6c-1.8.2-3.4 1-4.7 2.3L137.7 444.8zm408.1-306.2l224.6 19 19 224.6L477.5 694 233.9 450.5l311.9-311.9z" fill="#626262"/><path fill="rgba(0, 0, 0, 0)" d="M0 0h1024v1024H0z"/></symbol> </svg> </body> </html>