Case-sensitivity-in-variables

Tell us what’s happening:
Hello there. I’m trying to pass this topic but seems like it does not work. Can you please check what is going on? I admit that maybe is my mistake.
It still showing me that is an error:

// running tests
properCamelCase
should use camelCase in both declaration and assignment sections. // tests completed

Your code so far


// Variable declarations
var StUdLyCapVaR;
var properCamelCase;
var TitleCaseOver;

// Variable assignments
var studlyCapVar;
var properCamelCase;
var titleCaseOver;

studlyCapVar = 10;
properCamelCase = "A String";
titleCaseOver = 9000;


Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.129 Safari/537.36.

Challenge: Understanding Case Sensitivity in Variables

Link to the challenge:

Thank you.

You need to replace these lines:

var StUdLyCapVaR;
var properCamelCase;
var TitleCaseOver;

with these lines:

var studlyCapVar;
var properCamelCase;
var titleCaseOver;

Exactly what I’m doing, but “var properCamelCase;” is still showing that is wrong.

That’s why I’m confused.

does anyone can help me with???

This is the starter code

// Variable declarations
var StUdLyCapVaR;
var properCamelCase;
var TitleCaseOver;

// Variable assignments
STUDLYCAPVAR = 10;
PRoperCAmelCAse = "A String";
tITLEcASEoVER = 9000;

You are supposed to change the capitalization in both places where the variable name is currently written to make them camelCase. You are not supposed to add a duplicate variable declaration.

Omg… I understood now. Thank you.

1 Like