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

27th Jun 2021, 11:04 AM
Malick Diagne
Malick Diagne - avatar
1 Réponse
+ 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})`;
27th Jun 2021, 11:23 AM
ODLNT
ODLNT - avatar