0

Can someone help me with the image slider code

https://code.sololearn.com/Wv0t8oigvvnD/#

11th Feb 2022, 11:37 AM
Aayush Swami
Aayush Swami - avatar
2 Antworten
11th Feb 2022, 1:20 PM
SAN
SAN - avatar
0
Line 24: Can't use <prev> as variable name for the button reference cause it's a function's name. Line 25: Can't use <next> as variable name for the button reference cause it's a function's name. Line 26, 27: 1. Typo for method name, it should be "addEventListener" 2. Don't use parentheses () after function name when mapping event handler to a function. Just put the name without (). <element>.addEventListener( "click", <function-name> );
11th Feb 2022, 12:06 PM
Ipang