crop_rotate
Run
<!DOCTYPE html> <html> <body> <h2>JavaScript For/Of Loop</h2> <p>The for/of statement loops through the values of an iterable object.</p> <p id="test"></p> <script> let cars = ["BMW", "Volvo", "Mini"]; let text = ""; for (let x of cars) { text += x + "<br>"; } document.getElementById("test").innerHTML = text; </script> </body> </html>
PCFET0NUWVBFIGh0bWw+DQo8aHRtbD4NCjxib2R5Pg0KDQo8aDI+SmF2YVNjcmlwdCBGb3IvT2YgTG9vcDwvaDI+DQoNCjxwPlRoZSBmb3Ivb2Ygc3RhdGVtZW50IGxvb3BzIHRocm91Z2ggdGhlIHZhbHVlcyBvZiBhbiBpdGVyYWJsZSBvYmplY3QuPC9wPg0KDQo8cCBpZD0idGVzdCI+PC9wPg0KDQo8c2NyaXB0Pg0KbGV0IGNhcnMgPSBbIkJNVyIsICJWb2x2byIsICJNaW5pIl07DQpsZXQgdGV4dCA9ICIiOw0KDQpmb3IgKGxldCB4IG9mIGNhcnMpIHsNCiAgdGV4dCArPSB4ICsgIjxicj4iOw0KfQ0KDQpkb2N1bWVudC5nZXRFbGVtZW50QnlJZCgidGVzdCIpLmlubmVySFRNTCA9IHRleHQ7DQo8L3NjcmlwdD4NCg0KPC9ib2R5Pg0KPC9odG1sPg==