79545549

Date: 2025-03-31 05:40:13
Score: 0.5
Natty:
Report link

But testing for zero is a bit different:

nav.style.width = 0
console.log('Try: width===0: ' + (nav.style.width === 0) + 
 "; width==='0': " + (nav.style.width === '0') + 
 "; width==='0px': " + (nav.style.width === '0px'))

Output:

Try: width===0: false; width==='0': false; width==='0px': true

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: marzetti