• Sign in
  • Sign up 
  • Welcome
  • FAQ
  • Block Explorer 
  • Night Mode
  • Stolen Accounts Recovery 
  • Change Account Password 
  • Vote for Witnesses 
  • Hive Proposals 
  • OpenHive Chat 
  • Developer Portal 
  • Hive Whitepaper 
  • Privacy Policy
  • Terms of Service
logo
  • Posts
  • Proposals
  • Witnesses
  • Our dApps
LoginSign up

Did you know that JavaScript has had labels since ES3?!?

dimitarnestorov (25)in #javascript • 8 years ago (edited)

label - JavaScript MDN

Essentially it is something like goto but only for loops and labeled blocks.

js label

I'm curious to see what's the worst example you can think of using labels?

Or is there by any chance a very useful way to use them?

The possibilities are endless!

#programming
8 years ago in #javascript by dimitarnestorov (25)
$0.00
    2 votes
    • dimitarnestorov
    • ghasemkiani
    Reply 1
    Sort:  
  • Trending
    • Trending
    • Votes
    • Age
  • [-]
    sporfiatalong (30)
     8 years ago  

    Great article

    $0.00
      Reply