Froquiz
Home
Quizzes
Job Tracker
Senior Challenge
System Design
Get Certified
Blog
🇬🇧
en
Sign In
Start Quiz
🇬🇧
en
Sign In
Start Quiz
Loading...
Quiz Topics
1
2
3
4
5
6
7
8
9
10
01
/ 10
What order does the ToPrimitive algorithm follow when converting an object to primitive?
Auto Skip
Report Issue
A.
ToPrimitive only uses valueOf(); toString() is never called
B.
ToPrimitive always converts using JSON.stringify()
C.
number hint: valueOf() then toString(); string hint: toString() then valueOf(); if Symbol.toPrimitive exists it is called
D.
Always follows toString() then valueOf() order; no hint parameter
Previous
Next