@Nanowrimoijk I see the problem. Repl.it does not support a ton of console features in the editor, so for this to actually work you'd have to run it here: https://dependentelectronicboolean.nanowrimoijk.repl.run/ (you can also get there via the repl.run link which is right on top of the console view.
@Nanowrimoijk Console.clear should work. If it does not, it might be a problem with your code. Could you provide a link to your repl?
If it's just a suggestion for a command there is no need as the command already exists and is confirmed to work on repl.it
Please mark this as answered if I helped your problem