The code for this is not mine. I was just going over something and saw a + before the keyword this for the first time and was wondering what it does.
+this.closest('li').getAttribute('data-index');
The code for this is not mine. I was just going over something and saw a + before the keyword this for the first time and was wondering what it does.
+this.closest('li').getAttribute('data-index');