Cloud Computing simulates an environment where a student can write code subject to certain requirements. In this example, the language is javascript, and the requirements are:
- A For Statement containing a Variable Declaration. For example,
for (i=0; i<4; i++) { var x = 10 * i; doSomething(x) }
- An If Statement. For example,
if (color === 'orange') {shout()}
- A While Statement. For example,
while (y>0) {y--}