What is the output of the below JavaScript?
var currDate = new Date("30 September, 2011"); alert(currDate.getMonth());
9
8
10
error