diff --git a/View/src/JS/Admin2.js b/View/src/JS/Admin2.js index cd29abd8..062a92d4 100644 --- a/View/src/JS/Admin2.js +++ b/View/src/JS/Admin2.js @@ -7,9 +7,10 @@ element.classList.remove("nav-button"); element.classList.add("currentText"); } - +let terminal = ""; +let retourCode = ""; +let retourSolution = ""; function run() { - var terminal =""; const runner = new BrythonRunner({ stdout: { write(content) { @@ -47,8 +48,6 @@ function run_init() { } //Function that execute given code and return the result in a given element by id -let retourCode = ""; -let retourSolution = ""; function exec(code, id) { var terminal = ""; const runner = new BrythonRunner({