answersLogoWhite

0

The Javascript switch is used for performing different actions based on various conditions. It allows one to produce more complex programs and the software to respond to different situations it may face.

User Avatar

Wiki User

11y ago

What else can I help you with?

Related Questions

What unit is used for timing Javascript events?

Milliseconds are used for timing JavaScript events.


Can javascript be used in Jtextpane in swing?

No. JavaScript can be used only in HTML and other Web Components


Can you hide and reveal text e.g YouTube comments without the use of javascript I wanted to try it on Myspace but it disables javascript.?

Very unlikely. See, Javascript is used to change the className attribute of the text node. When the className has changed, the node uses the properties that are set with CSS. This means you can keep a text invisible with CSS only, but you'll always need Javascript to switch classes.


How is javascript used?

JavaScript is used to make HTML DHTML or Dynamic HTML. Provides a lot more interactivity between the web page and the browser provided JavaScript is not turned off.


What are the main functions of Javascript?

Javascript can be used on a variety of platforms which require simple computer commands but not a full programming language. Javascript can be used as or in addition to a full fledged programming language.


How does form validation differ in JavaScript and PHP?

In JavaScript the validation is done client side, which means it can be easily bypassed by turning JavaScript off in your browser. But with PHP it is server side, which means you can't switch it off, so you can't bypass the validation.


What are control structures used in javascript?

The control structures used in java script are if-statement, for-loop, for-in loop, while loop,do-while loop, switch-statement, with-statement. try-catch-finally statements.


Do you need java compiler to execute HTML programs written in javascript?

No, Java and JavaScript are nothing to do with each other, JavaScript is a form of EMCAScript, not Java. Every modern browser comes with a JavaScript engine that is used to understand JavaScript. so there is no need for it, no.


What programming language is used for webOS applications?

HTML5, JavaScript, CSS


What is Undefined in javascript?

In JavaScript undefined is a special value used when a variable has not had a value set to it, or has not been declared.


What is the use of id in javascript?

ID in JavaScript can be used to refer a control. For example getElementbyID("#name-of-id").


What can be used to switch content when building a website?

When switching content in a website technologies such as jquery and javascript libraries would be used to update sections of content based either on timings or on certain criteria being met