Basic JavaScript - Understanding Case Sensitivity in Variables

Tell us what’s happening:
is something wrong??

the “hint”:
“studlyCapVar should be defined and have a value of 10.
properCamelCase should be defined and have a value of the string A String.
titleCaseOver should be defined and have a value of 9000.”

Your code so far

// declarations
var studlyCapVar;
var PROPERCAMELCASE;
var titleCaseOver;

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

// 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 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.5 Safari/605.1.15

Challenge: Basic JavaScript - Understanding Case Sensitivity in Variables

Link to the challenge:

You only need 1 group of 3 declarations and 1 group of 3 assignments. The variables in each should be in camelCase

  • reference error “properCamelCase”, this variable is not declared in scope!!
    address that change and it should be alright, happy learning :slight_smile:

the second group is from the test, the first group was written by me. i should not delete the test group.

sorry but I still don’t get what’s wrong

  • remove 2nd groups
  • from 1st group check for “properCamelCase” in declarations, you wont find it there, thats why its showing “reference error”

address those changes and it should be alright, happy learning :slight_smile:

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