Please JavaScript DaysUntil Xmas Help

I need to make a Object display the until xmas day countdown, i take a example from internet of the code buy i dont known how to make a object text to variable and take the result from the JavaCode result…

this is a java example:

let today = new Date();
let christmasYear = today.getFullYear();

if (today.getMonth() == 11 && today.getDate() > 25) {
christmasYear = christmasYear + 1;
}

let christmasDate = new Date(christmasYear, 11, 25);
let dayMilliseconds = 1000 * 60 * 60 * 24;

let remainingDays = Math.ceil(
(christmasDate.getTime() - today.getTime()) /
(dayMilliseconds)
);

Hi Alex,

You can use object.text(newText) function to change text of an object, for example

// show remainingDays 
prez.object('your object name').text(remainingDays);

Regards

Tks Solved… thank you soo much