Jump to content

3 More ERRORS found by me in W3SCHOOLS

Recommended Posts

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-


.....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 post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...