Defining Variables Help

I fixed the capitalization issue with each variable and it keeps saying that studlyCapvar is not right!! Help me :frowning:
var studlyCapvar;

var properCamelCase;

var titleCaseOver;

// Variable assignments

studlyCapvar = 10;

properCamelCase = “A String”;

titleCaseOver = 9000;

Which challenge is this for? It’s not readily apparent (at least to me).

OK, I found it:

Be sure to always include a link to the challenge.

If you look at the messages in the console below the code editor you should see that you are getting an error:

SyntaxError: unknown: Unexpected character '“'. (11:18)

   9 | studlyCapvar = 10;
  10 |
> 11 | properCamelCase = “A String”;
     |                   ^

This catches quite a few people, you are not alone. The quotations marks you are using are “fancy” quotes. JS doesn’t understand what these are, it is expecting very plain ascii double quotes. Are you using some sort of text editor to create the code and then copy/pasting into the FCC web editor? If so then that editor is using the fancy quotes by default and you just need to turn that off.

Let us know a little more about how you are inputting your code into the FCC editor and then we can help you figure out how to use ascii quotes.

studlyCapVar should use camelCase in both declaration and assignment sections

Look at this closely.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.