Source code
Revision control
Copy as Markdown
Other Tools
if (x) {
foo();
}
else if (y) {
foo();
}
else {
foo();
}
for (var i=0; i< 5; i++ ) {
foo();
}
while (x) {
foo();
}
switch (c) {
case a:
console.log('hi')
}
var a = 3;
for (const val of [1, 2]) {
console.log("pause again", val);
}
for (const val of vals) {
console.log("pause again", val);
}
try {
} catch (e) {
}
with (e) {}