I have an error when I try to log the declared variable inside my JavaScript object. anyone can help me with this issue thank you!
const options = {
classes: 'bg-gray-900 bg-opacity-50 dark:bg-opacity-80 fixed inset-0 z-40',
onShow: () => {
//Uncaught TypeError: Cannot read properties of undefined (reading 'classes')
console.log(this.classes);
}
};