> Check whether a number is even or odd without the modulus (%) operator const isOdd = (n) => (n & 1) == 1;
-
Show this thread
Wesley Moore Retweeted Wesley Moore
Oops forgot to mention this was the response to the interview question in @cassidoo’s newsletter this week.https://twitter.com/wezm/status/988605699100852224 …
Wesley Moore added,
7:49 PM - 23 Apr 2018
0 replies
0 retweets
1 like
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.