JSFlow
Publications
Console
Challenge
Enter JavaScript code and press 'Execute' to execute the code with JSFlow.
write("- Example 1"); var x = lbl(2); // A confidential integer 2 print("x: "+x); var y = 3; // A public integer 3 print("y: "+y); write("- Example 2"); var z = 5 + x; // Explicit flow print("z: "+z); write("- Example 3"); // Implicit flow, allowed since z is confidential if (x == 2) { z = 2 } else {z = 0} print("z: "+z);
Execute