ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 34 - Certified JavaScript Developer I discussion

Report
Export

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);
Answers
A.
let numberValue = Number(textValue);
B.
Let numberValue = (Number)textValue;
Answers
B.
Let numberValue = (Number)textValue;
C.
Let numberValue = textValue.toInteger();
Answers
C.
Let numberValue = textValue.toInteger();
D.
Let numberValue = Integer(textValue);
Answers
D.
Let numberValue = Integer(textValue);
Suggested answer: A
asked 23/09/2024
ALOUAT EKRAM
45 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first