Deal of The Day! Hurry Up, Grab the Special Discount - Save 25%
- Ends In
00:00:00
Coupon code:
SAVE25
X
Welcome to Pass4Success
Login
|
Sign up
-
Free
Preparation Discussions
Mail Us
support@pass4success.com
Location
US
MENU
Home
Popular vendors
Salesforce
Microsoft
Nutanix
Amazon
Google
CompTIA
SAP
VMware
Fortinet
PeopleCert
Eccouncil
HP
Palo Alto Networks
Adobe
ServiceNow
Dell EMC
CheckPoint
Linux Foundation
Discount Deals
New
About
Contact
Login
Sign up
Home
Discussions
Oracle Discussions
Exam 1Z0-819 Topic 5 Question 39 Discussion
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.)
A
var names = new ArrayList<>();
B
var _ = 100;
C
var var = ''hello'';
D
var y = null;
E
var a;
Show Suggested Answer
Hide Answer
Suggested Answer:
C
by
Geoffrey
at
May 28, 2022, 08:08 PM
Limited Time Offer
25%
Off
Get Premium 1Z0-819 Questions as Interactive Web-Based Practice Test or PDF
Contribute your Thoughts:
Submit
Cancel
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
Ivan
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
...
Log in to Pass4Success
×
Sign in:
Forgot my password
Log in
Report Comment
×
Is the comment made by
USERNAME
spam or abusive?
Commenting
×
In order to participate in the comments you need to be logged-in.
You can
sign-up
or
login
Save
Cancel
Berry
5 days agoIvan
Goldie
1 days agoBlondell
19 days agoEzekiel
2 days agoQueenie
20 days agoLynelle
27 days agoLaurel
1 months agoLynelle
1 months ago