- variables initializatoin
- regex: operator, escape sequence, space, bracket notation
- variables' type & value
- function call
- get the error message
try {
eval(code);
} catch (e) {
if (e instanceof SyntaxError) {
alert(e.message);
}
}
- print the object
JSON.stringify(myArray)