Posts by dlac • 326 points
2 posts
-
7
votes2
answers61
viewsA: Can someone help me change the image by using Javascript?
The problem there is you’re wearing one || (OR) instead of a && (And). As 400 is greater than 101 soon condition: if (num >= 101 || num <= 200) is always true. If you change to if (num…
javascriptanswered dlac 326 -
14
votes3
answers576
viewsA: What is CSS OK?
Well it’s not a new standard, it’s a convention that’s a few years old. The goal is that the names of the CSS classes are somewhat relationable with HTML and increase the readability of the CSS…