Ace editor is a web text editor and doesn't provide code execution itself. You will need a separate API/ server endpoint that can execute the code for you. You can use ace editor for the UI of web editor and pass the code to code execution system like judge0!.