javascript add minutes to date

// Step 1: Create a new Date object representing the current date and time
const currentDate = new Date();

// Step 2: Define the number of minutes to add to the current date
const minutesToAdd = 30;

// Step 3: Calculate the new date by adding the specified minutes to the current date
const newDate = new Date(currentDate.getTime() + minutesToAdd * 60000);

// Step 4: Display the original and updated dates
console.log("Original Date:", currentDate);
console.log("Updated Date (after adding 30 minutes):", newDate);