Java, Understanding Case Sensitivity in Variables

Java, Understanding Case Sensitivity in Variables
0

#1

Good evening every one. Somebody please tell me what is wrong with ths:

// Declarations
var studyCapVar;
var properCamelCase;
var titleCaseOver;

// Assignments
studyCapVar = 10;
properCamelCase = “A String”;
titleCaseOver = 9000;

The studyCapVar is giving problem…somebody please suggest where the issue is, thanks

        studlyCapVar is defined and has a value of 10
     
        studlyCapVar should use camelCase in both declaration and assignment sections.

#2

Hi, @wakimunge. You have a typo in studyCapVar . It should be studlyCapVar (notice the l).

And it’s JavaScript, not Java ;), though both have case-sensitive variables.


#3

Thank you Kev. It has worked. Good night.


#4

@kevcomedia i still didnt understood i have been facing same problem