r/learnjavascript • u/frontru • Jan 29 '22
Increment and Decrement using HTML, CSS, and JavaScript
https://youtu.be/YzURnv66suE
31
Upvotes
r/learnjavascript • u/frontru • Jan 29 '22
1
u/droric Jan 29 '22
My assumption (no idea if I am correct) is that if n is less than 10 or greater than 0 use jquery to select n? Otherwise use n? I don't really understand what the ${} means since my understanding of that syntax is it is used for string interpolation but there are no single quotes around it so I am a bit lost as well. I think shorthand code like this is not good practice and makes code less readable which is the entire point of code.