One final point on try/catch. There is a reason you don’t generally see patterns embracing the try/catch paradigm many places in JavaScript. Because unlike in other languages where you do see it more often, such as Java, a try block in JavaScript immediately opts that section of code out of many engine optimizations as the code can no longer be broken down into determinative pieces. In other words, the same code will run slower in JavaScript when wrapped in a try block …

A space to share ideas about javascript

  • 0 users online
  • 1 user / day
  • 1 user / week
  • 2 users / month
  • 4 users / 6 months
  • 4 subscribers
  • 31 Posts
  • 3 Comments
  • Modlog