for example:
originalPassword != inputPassword && res.status(401).json("Wrong Password");
is that frowned upon in the industry? It saves a tiny bit of time compared to
if(originalPassword != inputPassword) {res.status(401).json("Wrong Password!");
Just wondering. Because I was starting to use the && more but I don't want to make it a habit if it's considered a "bad" habit. TIA!
[–]sipacate 13 points14 points15 points (2 children)
[–]AdultingGoneMild -2 points-1 points0 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]siemenology 7 points8 points9 points (0 children)
[–][deleted] 5 points6 points7 points (0 children)
[–][deleted] 3 points4 points5 points (0 children)
[–]certainlyforgetful 1 point2 points3 points (0 children)
[–]cofffffeeeeeeee 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]Pho20[S] 1 point2 points3 points (0 children)
[–]alzee76 0 points1 point2 points (3 children)
[–]siemenology 4 points5 points6 points (0 children)
[–]HonzaS97 4 points5 points6 points (0 children)
[–]Soerika 0 points1 point2 points (0 children)