JS adiciona segundos à hora atual
var t = new Date();
t.setSeconds(t.getSeconds() + 10);
Munnam Yousuf
var t = new Date();
t.setSeconds(t.getSeconds() + 10);
const date = new Date('2020-01-01 10:11:55');date.setSeconds(date.getSeconds() + 10);