i need to show current time in html code, but the javascript code only work once?
 $(document).ready(function () {
     function updateClock(ele){
         var current_time = new Date();
         var current_time_str = current_time.toLocaleTimeString();
         ele.text(current_time_str);
         console.log(current_time_str);
     }
   setInterval(updateClock($('#clock')) , 1000 );
 })
It's work different some others languages like C,Object-C or Python, it's so misleading for me.
 
     
     
    