List of questions
Related questions
Question 127 - Certified JavaScript Developer I discussion
The developer wants to test this code:
Const toNumber =(strOrNum) => strOrNum;
Which two tests are most accurate for this code?
Choose 2 answers
A.
console.assert(toNumber('2') === 2);
B.
console.assert(Number.isNaN(toNumber()));
C.
console.assert(toNumber('-3') < 0);
D.
console.assert(toNumber () === NaN);
Your answer:
0 comments
Sorted by
Leave a comment first