Ad
Code
Diff
  • function* blaze_it() {
      yield 69;
      yield 420;
      yield 1337;
    }
    
    const dark_tech = blaze_it();
    
    let a = 10;
    a = dark_tech.next().value; // a = 69
    a = dark_tech.next().value; // a = 420
    a = dark_tech.next().value; // a = 1337
    const b = 42;
    a = 10 * b; // a = 420
    a = 17; // a = 17
    a -= Math.sin(Math.PI / 2); // a = 16
    a = a ^ 69; // a = 85
    a = 420; // a = 420
    
    console.log(a); // Output: 420
    
    • function* blaze_it() {
    • yield 69;
    • yield 420;
    • yield 1337;
    • };
    • }
    • const dark_tech = blaze_it()
    • const dark_tech = blaze_it();
    • let a=10;
    • a = dark_tech.next().value;
    • a = dark_tech.next().value;
    • a = dark_tech.next().value;
    • let a = 10;
    • a = dark_tech.next().value; // a = 69
    • a = dark_tech.next().value; // a = 420
    • a = dark_tech.next().value; // a = 1337
    • const b = 42;
    • a = 10*b;
    • a= 17;
    • a - Math.sin(Math.PI / 2);
    • a = a^69;
    • a=420;
    • a = 10 * b; // a = 420
    • a = 17; // a = 17
    • a -= Math.sin(Math.PI / 2); // a = 16
    • a = a ^ 69; // a = 85
    • a = 420; // a = 420
    • console.log(a); // Output: 420