tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

control-flow.js (354B)


      1 if (x) {
      2  foo();
      3 }
      4 else if (y) {
      5  foo();
      6 }
      7 else {
      8  foo();
      9 }
     10 
     11 for (var i=0; i< 5; i++ ) {
     12  foo();
     13 }
     14 
     15 while (x) {
     16  foo();
     17 }
     18 
     19 switch (c) {
     20  case a:
     21    console.log('hi')
     22 }
     23 
     24 var a = 3;
     25 
     26 for (const val of [1, 2]) {
     27  console.log("pause again", val);
     28 }
     29 
     30 for (const val of vals) {
     31  console.log("pause again", val);
     32 }
     33 
     34 try {
     35 } catch (e) {
     36 }
     37 
     38 with (e) {}