Which of the following is a JavaScript function for generating a random number between 0 and 1?
A. random()
B. floor()
C. ceil()
D. None of the above
Answer:A
Which of the following is a JavaScript function for generating a random number between 0 and 1?
A. random() B. floor() C. ceil() D. None of the above