Question: Which flow control statements we used in WMLScript?
Answer: Those Flow Control statements and Operators used in JavaScript are also Supported by WMLScript. Example: 1.if Statement if (i == j) { i = i * 5.12; } else { i = 0; }
2.for Statement for (var i = 1; i < 200; i ++) { var v = i * 2.56; somefunction(v); };
3.while Statement var i=30; var j=0; while (i > j) { i--; };
4.continue Statement for (var i = -100; i < 100; i ++) { if (i == 0) continue; var v = 350/i; };
Question:
Which flow control statements we used in WMLScript? Answer:
Those Flow Control statements and Operators used in JavaScript are also Supported by WMLScript. Example: 1.if Statement if (i == j) { i = i * 5.12; } else { i = 0; }
2.for Statement for (var i = 1; i < 200; i ++) { var v = i * 2.56; somefunction(v); };
3.while Statement var i=30; var j=0; while (i > j) { i--; };
4.continue Statement for (var i = -100; i < 100; i ++) { if (i == 0) continue; var v = 350/i; }; Source: CoolInterview.com
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
There should not be any Spelling Mistakes.
There should not be any Gramatical Errors.
Answers must not contain any bad words.
Answers should not be the repeat of same answer, already approved.