Skip to content
Advertisement

Tag: ecmascript-6

javascript data set property

i have set data in the html elements like and try to access them into the js file like: but I got error that says cart.js:5 Uncaught TypeError: Cannot read property ‘action’ of undefined at HTMLButtonElement. Answer If you use this word, you should not use the arrow function!

Advertisement