Which of the following will correctly declare the courseNumber variable as a siring data type?
Suggested Answer: C
Get Premium 1D0-735 Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
14 comments · newest first
PE
Peggie
10 months ago
Really? I thought JS101 was a string too!
CA
Carla
10 months ago
Wait, isn't C missing a quote?
LO
Lorean
10 months ago
I think option A is correct.
TH
Theresia
10 months ago
No way, it's definitely B!
MA
Ma
11 months ago
D doesn't even declare it as a string.
AR
Arminda
11 months ago
Option D seems wrong since it doesn't have quotes around JS101, but I can't remember if there's a specific syntax rule for variable declarations.
RO
Rosalind
11 months ago
I thought strings needed to be in quotes, so maybe B is the right choice, but I’m a bit confused about the extra quotes.
MA
Madalyn
11 months ago
I remember practicing similar questions, and I feel like the variable name should have an underscore in it, but I can't recall if that's necessary.
JA
Jaclyn
11 months ago
I think option A looks familiar, but I'm not sure if the quotes are correct.
LI
Lizbeth
12 months ago
This is a good test of our understanding of basic JavaScript syntax. I'm going to carefully consider each option and make sure I understand why the correct answer is the right choice.
AN
Antione
12 months ago
I'm a little confused by the wording of this question. Does "siring" mean something special in JavaScript that I'm not aware of? I'll have to double-check the syntax for declaring string variables.
VI
Vi
12 months ago
Okay, I've got this. The correct way to declare a string variable in JavaScript is to use single quotes around the value. So option A is the right answer here.
IZ
Izetta
1 year ago
Hmm, I'm a bit unsure about this one. I know strings need to be enclosed in quotes, but I'm not sure if single or double quotes are required. I'll have to think this through.
JA
Jackie
1 year ago
This looks like a pretty straightforward question. I'm going to carefully read through the options and think about the proper way to declare a string variable in JavaScript.