To display the current date, you can use the Date
object.
const currentDate = new Date();
console.log(currentDate); // Displays the current date and time
Tags: basic, JavaScript, date and time
URL: https://www.tiktok.com/@jsmentoring/photo/7458949968116682016