Community

Using Logical Operators To Perform Ternary Operations In Javascript

(Ben Nadel) Yesterday on Twitter, Cody Lindley pointed out that logical operators in Javascript (&& and ||) don’t simply return True or False – they return specific operands used in the logical statement. While I have leveraged this concept in the past with statements like this:

Read More - Register for Free Membership