Computer Science, asked by mpranali102, 7 months ago

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 vaibhavsingh3633
0

Answer:

document.bgcolor is used to select the background colour.

Answered by ishwaryam062001
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:

  1. l as an identifier/variable
  2. . as an operator/separator
  3. document as an identifier/variable
  4. . as an operator/separator
  5. bgcolor as an identifier/property

The tokens of the statement "document.write()" are:

  1. document as an identifier/variable
  2. . as an operator/separator
  3. write as an identifier/method
  4. ( as an operator/separator
  5. ) 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