...

/

Quiz: Core Concepts of JavaScript

Quiz: Core Concepts of JavaScript

Test yourself on compilation and core concepts OF JavaScript.

We'll cover the following...

Compilation concepts

1.

What is the correct abstract syntax tree of the string: <br />.

A.
{
  "value": [
    [
      {
        "type": "node",
        "value": [
          "<",
          [],
          ["b", "r"],
          ">"
        ]
      }
    ],
    "EndOfInput"
  ],
  "cursor": 4
}
B.
{
  "value": [
    [
      {
        "type": "node",
        "value": [
          "<",
          [],
          ["b", "r"],
          [" "],
          "/>"
        ]
      }
    ],
    "EndOfInput"
  ],
  "cursor": 6
}
C.
{
  "value": [
    [
      {
        "type": "node",
        "value": [
          "<",
          [],
          ["b", "r"],
          [" "],
          "/>"
        ]
      }
    ],
    "EndOfInput"
  ],
  "cursor": 8
}

1 / 4