in javascript what will be returned by the following code snippet?
Answer options
A
Document.write(new date().getmonth());
B
month as number from 0 to 11
Correct answer: month as number from 0 to 11
Explanation
The source marks the correct answer as: month as number from 0 to 11.