Jump to content
Stef's Coding Community
Sign in to follow this  
webmanz

creating one statement variable answer

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

Share this post


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.
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...
Sign in to follow this  

×
×
  • Create New...