Jump to content

creating one statement variable answer


webmanz

Recommended Posts

Chapter 4  part 3

Question 2: Using only one statement, create a variable with the name of 'age' and give it a value of: 18

I answered var age="18"

but the correct answer was

var age= 18

Why my answer was incorrect as it did have the quotes in the right spot.

Edited by webmanz
Link to comment
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.
Note: Your post will require moderator approval before it will be visible.

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