0
I want to add many function with same object img like line 36. I have error. Thanks you.
Add function with img. https://code.sololearn.com/W1X5sEWXmgqk/?ref=app
1 Answer
+ 2
Too many quotation marks.
Replace line 36 with
img.style.filter = "opacity(" + b.filter + "),contrast(" + d.filter + ")"
you can also use template literals
img.style.filter = `opacity(${b.filter}), contrast(${d.filter})`;