Skip to content

Instantly share code, notes, and snippets.

@olvrb
Created April 25, 2018 07:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save olvrb/64db73337bea6b6b2b0a50913cbda927 to your computer and use it in GitHub Desktop.
Save olvrb/64db73337bea6b6b2b0a50913cbda927 to your computer and use it in GitHub Desktop.
firstloop:for (x=1;x<10;x++) { nestedloo:for (y=1; y<200;y++) {const fall1= 456*x + (y > 100 ? 2.4*y : 0 ); const fall2 = 345*x+1.5*y; if (fall1 < fall2){break firstloop;} console.log(`fall 1: 456*${x} + ${(y > 100 ? 2.4*y : 0 )} = ${fall1}`); console.log(`fall 2: ${fall2}`)} }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment