Here is the code:
let args = {
"wz_nav_style": "dots", // dots, tabs, progress
"buttons": true,
"navigation": 'all' // buttons, nav, all
};
const wizard = new wizard(args);
wizard.init();
document.addEventListener("submitWizard", function (e) {
alert("Form Submit");
});
I get the error:
Block-scoped variable 'wizard' used before its declaration.ts(2448)
How to solve this?