Happy Wednesday! 😄 Ever confused about display: none and visibility: hidden? 🤔 Swipe to see the difference between the two. ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀
🤔 Errata: On slide 3, I made a typo. For display: none, element is removed from view and no space reserved for it but it’s still in the DOM representation and accessible. ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
🌟 What are you trying to accomplish this week? ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀
#ui#css#html#frontend#studytips#codingisfun#programmer#womenintech#programming#digitalcreator#digitalcontentcreator ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ...
What's up guys, how is your week going ?
We'll start with the NOT - ! - operator. Look at the examples with this operator and see what these examples return. When we use this operator with some value, this will return false if that value can be converted to true, otherwise it will return true. So this basically always returns the opposite. We can also use this operator twice, like ' !!value '. This will basically return us true if the value is truthy and false if the value is falsy.
The OR operator - || - will return true if one of the values is truthy, otherwise it will return false. So, if the first value is truthy, it won't even look at the second value, it will just return us the first one. In the case ' 22 || 0 ' this will return 22 and will not even care about the 0.
Finally, we have the AND operator - &&. This operator returns true if both values are truthy, otherwise it will return false. So if it checks the first value and see that it's falsy, it will automatically return false and not care about the second value. " ' ' && 10 " will just return ' ' because this value is falsy.
Hope this made sense and let me know if you guys didn't understand something. Have a nice day! 😁🔥👌