Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Oracle Exam 1Z0-819 Topic 5 Question 39 Discussion

Actual exam question for Oracle's 1Z0-819 exam
Question #: 39
Topic #: 5
[All 1Z0-819 Questions]

Which two var declarations are correct? (Choose two.)

Show Suggested Answer Hide Answer
Suggested Answer: C

Contribute your Thoughts:

Berry
5 days ago
C is clearly wrong. You can't use 'var' as a variable name, that's just silly. I'd say B and D are the right choices.
upvoted 0 times
I think B and D are the correct choices. They seem to be valid var declarations.
upvoted 0 times
...
Goldie
1 days ago
I agree, C is definitely wrong. Using 'var' as a variable name is not allowed.
upvoted 0 times
...
...
Blondell
19 days ago
I'm going with B and E. Using 'var' to declare a variable without an initial value is also valid.
upvoted 0 times
Ezekiel
2 days ago
I think B and E are correct too. 'var' can be used without an initial value.
upvoted 0 times
...
...
Queenie
20 days ago
I think B and D are the correct options here. Declaring a variable with 'var' and initializing it with a value or null is valid in JavaScript.
upvoted 0 times
...
Lynelle
27 days ago
Yeah, those two options seem to be the only correct ones based on the rules for declaring variables in JavaScript.
upvoted 0 times
...
Laurel
1 months ago
I agree with you, Lynelle. I also think D) var y = null; is correct because it's declaring a variable with a null value.
upvoted 0 times
...
Lynelle
1 months ago
I think B) var _ = 100; is correct because it's assigning a value to a variable.
upvoted 0 times
...

Save Cancel