I'm wondering how to implement initialization via JavaScript similar to Ken Wheeler's Slick Carousel. Using jQuery you can select an element like this: $('.carousel-element').slick();
.
Is there any way do something similar using JavaScript? For example if I have a variable that holds an element, can I use that to call a custom function?
const myElement = document.getElementById('example-1');
myElement.customFunction();
Thank you in advance! I was having a lot of trouble figuring out how to word this, so if anyone knows what this technique is called that will help as well.