Lexical Structure Flashcards

(4 cards)

1
Q

A ____ is a data value that appears directly in a program

A

literal

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

An ______ is simply a name. In JavaScript, identifiers are used to name variables and
functions and to provide labels for certain loops in JavaScript code

A

identifier

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

A JavaScript identifier must begin with a letter, an underscore (_), or a dollar sign ($)

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Like many programming languages, JavaScript uses the ______ to separate statements

A

semicolon

How well did you know this?
1
Not at all
2
3
4
5
Perfectly