List of questions
Related questions
Question 34 - Certified JavaScript Developer I discussion
Refer to the code below:
Let textValue = '1984';
Which code assignment shows a correct way to convert this string to an integer?
A.
let numberValue = Number(textValue);
B.
Let numberValue = (Number)textValue;
C.
Let numberValue = textValue.toInteger();
D.
Let numberValue = Integer(textValue);
Your answer:
0 comments
Sorted by
Leave a comment first