Basic JavaScript - Understanding Case Sensitivity in Variables

I can’t understand what is actually wrong with what I put. I have watched videos, and I wrote the exact same code in several videos and it is being rejected.

Your code so far

// Variable declarations
var studlyCapVaR;
var properCamelCase;
var titleCaseOver;

// Variable assignments
studlyCapVaR = 10;
properCamelCase = "A String";
titleCaseOver = 9000;

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/112.0

Challenge: Basic JavaScript - Understanding Case Sensitivity in Variables

Link to the challenge:

CamelCase uses uppercase on the first letter of a word, but does it use uppercase on the last letter of a word?

1 Like

Thank you for responding. I tried by fixing this, and got the same result

Can you post your updated fixed code in here so we can see what you did?

To display your code in here you need to wrap it in triple back ticks. On a line by itself type three back ticks. Then on the first line below the three back ticks paste in your code. Then below your code on a new line type three more back ticks. The back tick on my keyboard is in the upper left just above the Tab key and below the Esc key. You may also be able to use Ctrl+e to automatically give you the triple back ticks while you are typing in the this editor and the cursor is on a line by itself. Alternatively, with the cursor on a line by itself, you can use the </> button above the editor to add the triple back ticks.

1 Like

The super frustrating thing is that I went back and changed that line again and now it took it.

// Variable declarations
var studlyCapVar;
var properCamelCase;
var titleCaseOver;

// Variable assignments
studlyCapVar = 10;
properCamelCase = “A String”;
titleCaseOver = 9000;

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