I wanted to show the system date after clicking the button, but after clicking the button it shows nothing. I have just started JavaScript and I don't know what I am doing wrong.
function dateFunc() {
   return this.innerHTML = Date();
}<button onclick="dateFunc()">The time is?</button>Thanks in advance.
 
     
     
    