Jump to content

ERROR found in W3SCHOOLS || fix it ASAP

Recommended Posts

Go to http://www.w3schools.com/jsref/tryit.asp?f...tetime_millisec and check the function checkTimeMsec(i)Hope you can see the condition of if statement there !Now, Suppose the millisecond of current time is 10...then the condition i<100 && i>10 will generate the millisecond part as 10, while it should be 010.So rectify that conditon this way

if(i<100 && i>9)

Edited by Biplab
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...