Sunday, 17 February 2019

Javascript : Loop Content

The for Loop
One of the most common ways to create a loop is by using the for statement
to create what is known as a for loop. A for loop allows you to repeatedly run
some code until an expression you specify returns false. That probably doesn’t
make a whole lot of sense, so to help clarify this definition, let’s look at an
example.

If we had to translate our earlier saySomething example using for, it would look
as follows:

var jumlah = 10;

function tulisSesuatu() {
document.writeln("hello!");
}

for (var i = 0; i < count; i++) {
tulisSesuatu();
}

email mailto: pretext

 <a href="mailto:designoutsourced.com+info@gmail.com?subject=Maklumat%20lanjut%20pakej&body=Hai,%20saya%20berminat%20tahu%20lebi...