MarkTechson/tau-intro-to-js

Chapter 1.2 - JavaScript Data Types: Quiz #3 appears to lack a correct answer option

Bobby-H opened this issue · 0 comments

There's no functional issue here, this is just a detail i got snagged on and didn't know if it would be embraced with an edit.

I just started the JS path and was getting along well until coming across the third quiz question for JS Data Types:
3: "Which variable name is valid?"

[  ] -numberOfCars-
[  ] number-Of-Cars
[  ] number_of_Cars

I paused on this because, given what Mark Thompson mentions about CamelCase being most common for JS, I wouldn't choose any of these answers.
after rationalizing and deciding to overlook the erroneous minus' bookending it, I selected -numberOfCars- since it was the closest instance of camelCase, though I was surprised that the answer was the snake_case choice - only because it hadn't been mentioned or addressed by Mark.

I went over the transcript provided just incase i'd missed something:

Transcript Segment

Alright, let's take a quick aside to discuss the naming convention for variables.

There are lots of ways to type variable name, but in JavaScript, we usually see camelCase.

That means the first word is lowercase and then the next word has a capital first letter and you repeat this process.

In our example, we have number, all lower case, O for of is capital O, lowercase f, and then a capital C for Concerts.

You'll see this a lot in programming.

But yeah, I didn't know if this was an oversight or just a tricky gotcha question - though i thought i'd mention it incase of the former. I'm loving Test Automation University, though; it's been an invaluable resource for me getting hands on familiarity with real world testing tools. I've been sharing & recommending it to my peers whether they're just cutting teeth in their coding career, a manual tester, or working QA engineer!