Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Java script C13 What method of the Number object returns the string for a number

ID: 3920194 • Letter: J

Question

Java script C13

What method of the Number object returns the string for a number with base 10 as the default?

Question options:

the round() method

the toPrecision() method

the toFixed() method

What method of the Number object returns a string with the number rounded to the specified number of decimal places?

Question options:

the toString() method

the round() method

the toFixed() method

Which parameters are required when you call the Date constructor with number parameters?

Question options:

the year and month

the year, month, and day

the year, month, day, and hours

What method of the Date object gets the day of the month in local time?

Question options:

the getDate() method

the getDay() method

the getDayOfMonth() method

Which of the following statements performs a case-insensitive comparison of the strings named text1 and text2?

Question options:

text1 = text2

text1.toLowerCase() = text2.toLowerCase()

text1.toLowerCase() == text2.toLowerCase()

Question 4 0 / 1 point

Explanation / Answer

4)

the toString() method returns the string format of a Number object with base 10 as default.

It can be passed with a radix.

ex : toString(2) -> converts to binary format.

5)

The toFixed() method returns a string with the number rounded to the specified number of decimal places.

Ex: toFixed(x) -> x number of digits to appear after the decimal point.

11)

when you call the Date constructor with number parameters the year and month are required parameters.

If you pass only year, it will be treated as milliseconds.

We can also pass more parameters, year,month,day,hour,minutes,seconds. but year and month are mandatory.

12)

The getDate() method Returns the day of the month in local time.

15)

text1.toLowerCase() == text2.toLowerCase().

this converts both text1 and text2 to lowercase and compares both are them.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote