0
Can someone help me with the image slider code
2 Answers
+ 2
Code solution: https://code.sololearn.com/WuSYHO2h411n/?ref=app
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> );