Beehaw
  • Communities
  • Create Post
  • search
    Search
  • Login
  • Sign Up
philnash ( philnash@programming.dev )  to JavaScript@programming.devEnglish · 3 年前

Stop nesting ternaries in JavaScript

www.sonarsource.com

external-link
message-square
25
link
fedilink
26
external-link

Stop nesting ternaries in JavaScript

www.sonarsource.com

philnash ( philnash@programming.dev )  to JavaScript@programming.devEnglish · 3 年前
message-square
25
link
fedilink
Nesting ternary operators makes code more complex and less clear. Let's investigate other ways to write conditional expressions.
  • T (they/she) ( Templa@beehaw.org ) 
    link
    fedilink
    arrow-up
    2
    ·
    3 年前

    deleted by creator

JavaScript@programming.dev

javascript@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !javascript@programming.dev
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 3 users / day
  • 17 users / week
  • 38 users / month
  • 144 users / 6 months
  • 23 local subscribers
  • 2.87K subscribers
  • 325 Posts
  • 252 Comments
  • Modlog
  • mods:
  • Erlingur ( erlingur@programming.dev ) 
  • Ategon ( Ategon@programming.dev ) 
  • nick ( nick@programming.dev ) 
  • BE: 0.19.21
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code