ExamGecko
Question list
Search
Search

Question 49 - AD0-E213 discussion

Report
Export

Which code throws a "RangeError: radix must be an integer" exception in JavaScript?

A.
(42).toString(37);
Answers
A.
(42).toString(37);
B.
(0x42).toString(10);
Answers
B.
(0x42).toString(10);
C.
(42).toString(2);
Answers
C.
(42).toString(2);
Suggested answer: A

Explanation:

This code will throw a "RangeError: radix must be an integer" exception in JavaScript, as the radix value passed to the toString() method must be an integer between 2 and 36. Reference:

https://www.adobe.com/content/dam/acom/en/devnet/analytics/analytics-developer-professionalstudy-guide.pdf

asked 02/10/2024
Joshua Paffen
20 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first