Most languages also offer some method of dynamic execution that can execute a string held in memory as code. This allows the behavior of the program to be adapted in flexible ways.
dynamic-evaluation.js
let cmd = 'console.log("Hello world")' // Eval allows us to execute a // string as code. eval(cmd)
output.log