how to show time passing in a script

Description. develop a script where by clicking a button we can send a request to server to get the data. Show the Full Current Date and Time in JavaScript. Combine the two commands to show full date and time in the YYYY-MM-DD and HH:MM:SS formats. Edit your script as follows: