camelCase methode

Tell us what’s happening:
Describe your issue in detail here.
i am trying to use camelCase method to declare those variable, but they keep saying me that

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


// 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) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.41 Safari/537.36 Edg/101.0.1210.32

Challenge: Understanding Case Sensitivity in Variables

Link to the challenge:

Looks like these are a little different.

look at my code this is wearied.
var studlyCapVar=10;

var properCamelCase=" A String";

var titleCaseOver=9000;

if this is your new code:

there is a space in front of A that should not be there.

thank you. yeah, there is a space. I fixed this, but still not working

Can you post all of your updated code?

thank you so much for your help. it was my faute. i did it one more time and right now it is working

And i don’t know if your coded ended up looking like this:

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

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

but you only need to declare a variable once. Those var’s on the lower variables should not be there

i just started learning JavaScript. i think we dont need the keyword “var” to assign value to a variable . we use “var” only when we want to declare a variable right ?

Yup, just making sure you knew based on the other posted code. You can declare a variable with var and not assign it a value, and assign it later without the var.
I think after this test they teach you about let which wont allow you to just re declare a variable like var will.

yeap. i am there right now . do you think this corse will help me to get the basics of javascript ?

yeah. it might be difficult at times, but if you keep at it this site can teach you the basics.

1 Like

all right, thank you i appreciate that

1 Like

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