Declare variables

hi! I wrote this:
var studlyCapVaR = 10;
var properCamelCase = “A String”;
var titleCaseOver = 9000;

but the answer is wrong… why happened that??

the console said me :
“…studlyCapVar is defined and has a value of 10
Cannot read property ‘length’ of null…”

hi! thanks for help me…

this is all my answer

// Declarations
var studlyCapVaR;
var properCamelCase;
var titleCaseOver;

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

hi!
why my variables dont writte in camel case?, perhaps it not is when I writte the first letter is in lowercase?

thanks

yeah! you’re right! thanks!

hi , where is the problem in this code
// Declarations

var studlyCapVaR;

var properCamelCase;

var titleCaseOver;

// Assignments

studlyCapVaR = 10;

properCamelCase = “A String”;

titleCaseOver = 9000;

this is problem but i can not solve it
'studlyCapVar is defined and has a value of 10

Cannot read property ‘length’ of null’

thanks

This variable is not in camelCase

neither is this one.

there is not a variable like this one so you can’t pass the test, correct the two I quoted above and you can pass the test

1 Like

ooh thank , i can pass the test

hi
How to solve this code ?

As you need help with a different challenge it would be easier if you opened a thread using the “Ask for help” button - and please post your code, not a screenshot

The issue is that you are hardcoding numbers, and not using the function parameters so that your function is reusable

1 Like
Spoiler

function functionWithArgs(a,b){
console.log(a+b)

}
functionWithArgs(1,2)
functionWithArgs(2,4)
functionWithArgs(4,5)

1 Like

It is great that you solved the challenge, but instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge.

We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.

Thank you for understanding.

1 Like

Yes i Understood . I respect the thing you said here.