A thread on Swapping two numbers using #Javascript.
What? You thought we always need a 3rd variable for it? Believe me there are at least 4 more ways to do that.. https://abs.twimg.com/emoji/v2/... draggable="false" alt="😅" title="Lächelndes Gesicht mit offenem Mund und Angstschweiß" aria-label="Emoji: Lächelndes Gesicht mit offenem Mund und Angstschweiß">

#100DaysOfCode #CodeNewbie #code @thackingschool @codedotin @iprashanth_ #CodingTips #bootcamp
It& #39;s basic arithmetic. Dividing the product by any of the operand will always give you the other operand.. Isn& #39;t it?
Yes, there are flaws to this approach, like what if one of the number is 0, right? But who said this is the best approach? https://abs.twimg.com/emoji/v2/... draggable="false" alt="😜" title="Winking face with tongue" aria-label="Emoji: Winking face with tongue"> I didn& #39;t!

#programming #codingisfun
Wow! You read it so far.. Here& #39;s a joke for you.
What did the Owner of a 7-bit dog say?
"Don& #39;t worry, it doesn& #39;t byte!" https://abs.twimg.com/emoji/v2/... draggable="false" alt="😂" title="Gesicht mit Freudentränen" aria-label="Emoji: Gesicht mit Freudentränen">

#sorrynotsorry #Dontunfollowme
You can follow @WhoAdityaShukla.
Tip: mention @twtextapp on a Twitter thread with the keyword “unroll” to get a link to it.

Latest Threads Unrolled: