0

As we all know we type in these 2 lines in VBScript anytime , alltime tbh:)

Option Explicit On' Declaring Variables strictly
On Error Resume Next ' If error comes, chuck it , go to next line

What is the equivalent for that in Javascript ?

Well I do know

"use strict";

forces variable declaration but for second line , what is the equivalent ?

Tilak Madichetti
  • 4,110
  • 5
  • 34
  • 52
  • 1
    Are you looking for [`window.onerror`](http://stackoverflow.com/q/951791/1630171)? – Ansgar Wiechers May 01 '17 at 15:17
  • JavaScript has a far more structured approach to error handling, you want to look at a 'try` block, but the unhandled errors @AnsgarWiechers suggestion is your best bet. – user692942 May 02 '17 at 10:12

0 Answers0