What is the output of console.log(Math.floor(Math.random() * 10)) in JavaScript?
A. A random number between 0 and 10
B. A random number between 1 and 10
C. A random number between 0 and 9
D. A random number between 1 and 9
Answer:C
What is the output of console.log(Math.floor(Math.random() * 10)) in JavaScript?
A. A random number between 0 and 10 B. A random number between 1 and 10 C. A random number between 0 and 9 D. A random number between 1 and 9