answersLogoWhite

0

try...catch statement are not necessary anywhere. They are basically a fail-safe measure which ensures if a function does not execute an error is caught. Good programmers will always use try...catch so they realise if function executed or not

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

What is a JavaScript statement?

A statement in a programming language is a standalone unit of code. In JavaScript, statements generally end with a semicolon or a closing bracket.Examples:// variable statementvar x = 5;// if statementif (x == 0) {...}The ECMAScript language specification lists all the different types of statements permitted in JavaScript. See related links.


What are non-executable statement in a program javascript?

Comments are non-executable statements within JavaScript (or any other programming.) In JavaScript, comments are surrounded by /* and */ for multi-line comments, or started with // for single line comments.


What does a JavaScript certificate document?

A JavaScript certificate document is a document that proves you have all knowledge needed to master web development by using the Javascript and also HTML/DOM.


How can we use script tag in java?

to implement javascript embed the statements between <script> n </script>,,, and include any scripting language. eg:<script LANGUAGE="javascript"> block of codes </script>


What javascript is needed to open an online survey?

Any javascript can be used to open an online survey. It must be in HTML/PHP format though.


What are the similarities between PHP and JavaScript?

there are not many similarities, except the if and else statements, loops, etc... but PHP talks to the server, JavaScript can't. That's why both languages have totally different functions. If you only use basic JavaScript, PHP doesn't differ too much.


Legal requirements needed to acquire admissible statements in California?

Legal requirements needed to acquire admissible statements in PA


Is JavaScript programs compiled into intermediate form and linked to a HTML document?

JavaScript isn't compiled. It's an interpreted language, which means that it's translated into 'computer language' line by line when needed. You can link JavaScript to a HTML document by using the src attribute of the script tag. If you name your external javascript 'test.js', you can inject it into your HTML page by using <script type="text/javascript" src="test.js"></script>.


Can an entire website be written in Javascript?

No. The website is still going to need to be displayed in HTML, and CSS is going to be needed to create the layout. While you could use JavaScript to create the HTML structure, you still will need a base HTML document just to get the browser to call the JavaScript's initial functions.


What is a javascript tutorial?

A JavaScript tutorial contains instructions that will teach you how to code in JavaScript.


What languages can a browser understand?

HTML, CSS, & JavaScript.


What are built-in javascript classes?

Javascript does not have classes