Error Handling, “try..catch”:

We can be so good at programming, but still, we will make a lot of mistakes in our code. After causing the error, the application would be stuck at that point and sometimes terminate.

try {  // code...} catch (err) {  // error handling}
  1. If there were no errors, then catch(err) is ignored: the execution reaches the end of try and goes on, skipping catch.
  2. If an error occurs, then the try execution is stopped, and control flows to the beginning of catch(err). The err variable (we can use any name for it) will contain an error object with details about what happened.


Comments can be single-line: starting with // and multiline: /* ... */.

Cross Browser Testing:

Cross-browser testing is the practice of making sure that the web sites and web apps you create work across an acceptable number of web browsers. As a web developer, it is everyone’s responsibility to make sure that not only do our projects work, but they work for all of our users, no matter what browser, device, or additional assistive tools they are using.

Block Bindings:

Traditionally, the way variable declarations work has been one tricky part of programming in JavaScript. In most C-based languages, variables (or bindings) are created at the spot where the declaration occurs. In JavaScript, however, this is not the case. Where your variables are actually created depends on how you declare them, and ECMAScript 6 offers options to make controlling scope easier.

  1. Inside of a block (indicated by the { and } characters)

I am a self taught "Web Developer" specailizing in Front End Web Development.