Solved

If You Wanted the Following Function to Return Only the Two

Question 8

Multiple Choice

If you wanted the following function to return only the two values of 0 and 1, how would you re-write line 2?
1 ) function tossIt() {
2 ) return Math . random() ;
3 ) }


A) return Math . round() ;
B) return Math . round(Math . random() ) ;
C) return Math . round(random() ) ;
D) This cannot be done .

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions