Describe an the tokens of the following statement
l.document.bgcolor
II.document.write()
In programming a tocken is a single element of a programming language. There are five categories of 1)tokens constants.2) identities
3) operators 4) separators &5) reserved words
for ea, the reserved words 'new'll & Function"
are token of the Jawataipt language.
pescut cas suel H. Loe caso tokers
of nearly all pragranoning languge
Answers
Answered by
0
Answer:
document.bgcolor is used to select the background colour.
Answered by
0
Answer:
Tokens are the smallest individual units of a programming language
Explanation:
From the above question,
They have given :
The tokens of the statement "l.document.bgcolor" are:
- l as an identifier/variable
- . as an operator/separator
- document as an identifier/variable
- . as an operator/separator
- bgcolor as an identifier/property
The tokens of the statement "document.write()" are:
- document as an identifier/variable
- . as an operator/separator
- write as an identifier/method
- ( as an operator/separator
- ) as an operator/separator
Tokens are the smallest individual units of a programming language, and they are grouped into the following categories:
- Constants: Values that don't change, such as numbers, strings, and booleans.
- Identifiers: Names given to variables, functions, and other elements in the code.
- Operators: Symbols that perform operations, such as + for addition and * for multiplication.
- Separators: Punctuation marks that separate different elements of the code, such as semicolons (;) or commas (,).
- Reserved words: Keywords that have a specific meaning in the language and cannot be used as identifiers. For example, "if" and "for" are reserved words in many programming languages.
Note that these tokens are in the JavaScript language.
For more such related questions : https://brainly.in/question/17348344
#SPJ3
Similar questions