nath.bplb Posted July 14, 2011 Share Posted July 14, 2011 Today i found more three errors while learning the JS lessons....!-1. (a) Go here- http://www.w3schools.com/jsref/jsref_getutcmonth.asp. See the para "Defination and usage", Hope you can see this- "The getMonth() method returns......." ! I think it should be "The getUTCMonth() method returns....." instead ! -(b)Another error is on that same page,on Example 2.In that example, hope you can see this part- document.write("The current UTC month is "+..........); . But at the "The output of the code above will be:" option it has shown as- "The month is....."-2. Go here- http://www.w3schools.com/jsref/jsref_setfullyear.asp. The lesson says, the syntax of setFullYear() method is- Date.setFullYear(year,month,day) .....I think parameter date should be placed instead of parameter day...because date represents an integer between 1 and 31 but day represents an integer between 0 and 6. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.