JavaScript Course Online Free
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
JavaScript If..else statement | break statement inJavaScript |
getElementbyId in javascript |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
JavaScript If..else statement | break statement inJavaScript |
getElementbyId in javascript |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
While statement
create a loop ()is executed while a condition is true .
while loop run the condition is the true.
ஃ While loop use the codition inside ( ).
ஃ while loop condition TRUE then code { } executed.
ஃ while loop code evaluate again.
ஃ This condition FALSE then loop terminates.
Output :-
javascript for loop iterates element for fixed number of time.
for (initialization; condition; increment)
{
code executed
}
initialization :- is the count variable.
codition :- condition is called answer is true body than for loop executed.
condition :- condition is called answer is false than process stop