Execute Javascript step fails when using Parameters

I’m pretty new to this platform so I’m not sure if I’m doing something wrong or if there’s an issue with the addon.

I’m trying to execute the following code snippet with a stored static argument:

let array = document.querySelectorAll("#mCSB_6_container>ul>li");
console.log(array[0].ariaLabel) ;
let currDate = Date.parse(array[0].ariaLabel) ;
let maxDate = Date.parse({maxDate});
alert("MATCHING DATE FOUND ON "+ array[0].ariaLabel);
alert("No matching dates were found before: {maxDate}");

But it fails with the following error:

javascript error: missing ) after argument list