Jump to content

interpret codes


Recommended Posts

Len returns the length of a string. The string "000" has a length of 3. The code says that if myDay is a 1-digit string then it will add a 0 to the start of it. So if myDay is 8, then after the code it will be 08.

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.

Guest
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.

Loading...
×
×
  • Create New...