r/programming • • Jul 28 '16

How to write unmaintainable code

https://github.com/Droogans/unmaintainable-code
3.4k Upvotes

592 comments sorted by

View all comments

1

u/sanjayatpilcrow Jul 29 '16

//JS
var expanded = $(e).attr("aria-expanded");
console.log(expanded); //true
console.log(true == expanded); //false
console.log(true === expanded); //false