Slide 8
Slide 8 text
{
type: "Program",
body: [
{
type: "VariableDeclaration",
declarations: [
{
type: "VariableDeclarator",
id: {
type: "Identifier",
name: "answer"
},
init: {
type: "Literal",
value: 42,
raw: "42"
}
}
],
kind: "var"
}
]
}
Syntax Tree
var answer = 42;