The break statement is used to jump out of a loop.The Continue is used to skip an iteration in the loop.Tag reference, the break statement can be used to jump out of any JavaScript code block.DemoDOCTYPE HTML>HTML> Head> MetaCharSet= "Utf-8
The main contents of this section:
If-else Process Judgment
For loop
While loop
Reference pages
If-else process Judgment If statement overviewComputers can do a lot of automated tasks, because it can make their own
Tag: equals for Loop statement Boolean nbsp WWW code click Technology Share MITFirst, the loop control statementThe loop statement mainly consists of executing an operation repeatedly while satisfying the condition, and the loop control statement
JavaScript usesJavaScript is a lightweight programming language, and JavaScript is a programming code that can be inserted into an HTML page, and JavaScript is inserted into the HTML page and can be performed by all modern browsers.The script in the
One, array1. The concept and function of arraysAn array is a collection of elements of the same data type;The array itself is a reference data type, that is, an object. But arrays can store basic data types, or they can store reference data
Multiple options (switch statement)Switch is more convenient than if else when there are a number of options . Syntax :Switch ( expression ){Case Value 1:Executing code block 1BreakCase Value 2:Executing code block 2Break...Case Value N:Execute code
JavaScript Standard Reference Tutorial (Alpha) Noteshttp://javascript.ruanyifeng.com/#introduction2.1.4 N--: Use n again to execute n=n-1;--N: Execute n=n-1 before using n;The 2.1.5 chunk ({}) var does not constitute a separate scope for the
This article mainly introduces the use of switch statements in JavaScript, is the basic knowledge of JS learning, the need for friends can refer to the
You can use multiple if ... else if statements, such as the previous section, to perform
This article mainly introduces the use of break statements in Python, is the introduction of Python exhaled knowledge, the need for friends can refer to the
The break statement in Python terminates the current loop, and continues execution of the
javascipt-Basic ---details need to be noted:
1, special values : NaN, Infinity, isNaN (), Isfinite ()
NaN:
Copy Code code as follows:
var a=parseint (' A123 ');
Window.alert (a); Output Nan
Infinity:
Copy Code code
1th Chapter Essence
Some of the features of JavaScript feature a lot more trouble than they are worth. Some of these features are because the specification is so imperfect that it can cause portability problems; Some features can lead to the
Switch BASIC syntax structure:
switch (expression) {case
value 1: statement;
Case value 2: sentence;
Case Value 3: sentence;
...
Default:
statement;
Working
"Instance" three maximum "IPO"
Input: Three values
Processing: The maximum algorithm of three
Output: Printing maximum "algorithm comparison"
① Overall comparison-compares each value to all other values to determine the maximum value
Three-value
Switch statement
Enables the execution of one or more statements when a specified expression ' s value matches a label.
switch (expression) {
case label:
statementlist
case label:
statementlist
...
default:
statementlist
}
Break
function Mybreak () {for
(var i = 0; i
Output:
012
Break: Jump out of the current loop, start from outside the current loop, ignore any other statements in the loop body and test for cyclic conditions. It can only jump out of
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.