Basic JavaScript - Understanding Case Sensitivity in Variables

Tell us what’s happening:

Describe your issue in detail here.

Your code so far

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

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

whats wrong in this?

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36

Challenge Information:

Basic JavaScript - Understanding Case Sensitivity in Variables

Hi @pavithramuniyandi979 !
Welcome to our forum. How can we help you?

Your JavaScript code looks mostly fine, but it’s a bit repetitive. You’ve declared your variables and then assigned values to them separately. You can actually do both in one go. Here’s a more concise version:

— solution removed —

This way, you declare the variable and give it a value in a single line. Also, you don’t need to declare the variables again before assigning values; once is enough.

Other than that, your variable names look good, and the values are assigned correctly. Or you can Follow these links.
https://iqratechnology.com/academy/javascript-training/

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.

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