MCQ
Single Best Answer
Not Set
QWhich of the following selections serves as the literal hexadecimal start?
ID: #4831
Python Basic MCQ
243 views
Question Info
#4831Q ID
Not SetDifficulty
Python Basic MCQTopic
Your Answer
Choose the Best Option
Click any option to instantly check if you're correct.
Correct Answer: Option D
Explanation
In JavaScript, you can use the prefix 0x or 0X to denote a hexadecimal number.
For example:
let x = 0xFF; // x is 255
let y = 0XFF; // y is also 255
In this example, the variables x and y are both assigned the hexadecimal value FF, which is equivalent to the decimal value 255.
Continue Practice
Share
Share This Question
Challenge a friend or share with your study group.
More from This Topic