1.

A hexadecimal literal begins with __________(a) 00(b) 0x(c) 0X(d) Both 0x and 0XThe question was posed to me in quiz.My question comes from Types, Values and Variables in chapter Lexical Structures of JavaScript

Answer»

Correct choice is (d) Both 0X and 0X

To ELABORATE: GENERALLY, X or x DENOTES HEXADECIMAL values. So, any integer literal that begins with 0X or 0x denotes a hexadecimal number.



Discussion

No Comment Found

Related InterviewSolutions