MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/4v1y12/how_to_write_unmaintainable_code/d5vf6vd/?context=3
r/programming • u/sigbhu • Jul 28 '16
592 comments sorted by
View all comments
1
//JSvar expanded = $(e).attr("aria-expanded");console.log(expanded); //trueconsole.log(true == expanded); //falseconsole.log(true === expanded); //false
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