Conceptually, a realm consists of a set of intrinsic objects, an ECMAScript global environment, all of the ECMAScript code that is loaded within the scope of that global environment, and other associated state and resources.
Create a clean Interpreter and execute the code
Execute the code using an existing Interpreter The str is consumed and the state of the Interpreter is changed
Execute the code using an existing Interpreter.
The str is consumed and the state of the Interpreter is changed