I have also no skills in JavaScript.
But ChatGPT shows me that:
// Get the current date
var today = new Date();
// Number of days to add to the current date
var daysToAdd = 10;
// Calculate the new date
var futureDate = new Date(today);
futureDate.setDate(today.getDate() + daysToAdd);
// Format the result (e.g., 'DD.MM.YYYY')
var day = futureDate.getDate();
var month = futureDate.getMonth() + 1; // Months are zero-based
var year = futureDate.getFullYear();
// Add leading zeros if necessary
if (day < 10) {
day = '0' + day;
}
if (month < 10) {
month = '0' + month;
}
// Print the formatted date
var result = day + '.' + month + '.' + year;
console.log(result); // Output: '14.10.2023'