Q:

Adding 50 minutes to Date()

So, what I'm trying to do is to add 50 minutes to the current date I get, so I want to get the date and then get the time and then add 50 minutes. I want to check if I'm doing it the right way
d = new Date();
dateAfter50min = d.setDate(d.getMinutes() + 50);

A:

If you want to create a new Date by adding minutes to an existing the date, you can get the time in milliseconds, and then add the minutes converted to milliseconds - minutes * 60 * 1000:

const d = new Date();
const dateAfter50min = new Date(d.getTime() + 50 * 60 * 1000);

console.log(d);
console.log(dateAfter50min);

