I want to know if these two things are the same. In my brain they are. I am overall just trying to understand the javascript syntax better. In my brain these are the same. Please let me know why I am crazy! Thanks,
is this first one
if (edited === 'true' || edited === '')
the same as this?
if (edited == 'true' && '')
||and second&&if (expression && expression). Where each expression evaluates to eithertrueorfalseand&&evaluates the second expression if the first one istrue.accepted answerby using thegreen checkboxnext to the answer that helped the most. This will allow future coders a reference to the issue.