Ad
  • Custom User Avatar

    Okay, thank you

  • Custom User Avatar

    I changed the tests to random ones, however I do not quite understand how Preloaded works. Can I insert this code in Preloaded?

      const usercode = require('fs').readFileSync('/home/codewarrior/solution.txt', 'utf8');  
    	if (/Math\.pow/.test(usercode)) {
    		throw new SyntaxError("You can't use Math.pow()");
    	} else if (/\*\*/.test(usercode)) {
    		throw new SyntaxError("You can't use ** ");
    	}
    
  • Custom User Avatar

    Please tell me how to do this