Independence Day Deal! Unlock 25% OFF Today – Limited-Time Offer
- Ends In
00:00:00
Coupon code:
SAVE25
X
Welcome to Pass4Success
Login
|
Sign up
-
Free
Preparation Discussions
Mail Us
support@pass4success.com
Location
PL
MENU
Home
Popular vendors
Salesforce
Microsoft
Nutanix
Cisco
Amazon
Google
CompTIA
SAP
VMware
Oracle
Fortinet
PeopleCert
Eccouncil
HP
Palo Alto Networks
Adobe
ISC2
ServiceNow
Dell EMC
CheckPoint
Discount Deals
New
About
Contact
Login
Sign up
Home
Discussions
Salesforce Discussions
Exam Javascript-Developer-I Topic 4 Question 94 Discussion
Salesforce Exam Javascript Developer I Topic 4 Question 94 Discussion
Actual exam question for Salesforce's Javascript Developer I exam
Question #: 94
Topic #: 4
[All Javascript Developer I Questions]
Which two console logs output NaN?
Choose 2 answers | |
A
console.log(10 / Number('5) ) ;
B
console.log(parseInt ' ('two')) ;
C
console.log(10 / 0);
D
console.loeg(10 / 'five');
Show Suggested Answer
Hide Answer
Suggested Answer:
D
by
Katina
at
Oct 21, 2024, 07:07 AM
Limited Time Offer
25%
Off
Get Premium Javascript Developer I Questions as Interactive Web-Based Practice Test or PDF
Contribute your Thoughts:
Submit
Cancel
Patrick
2 months ago
Options B and D, for sure! Trying to convert strings like 'two' and 'five' to numbers is just asking for trouble.
upvoted
0
times
Cyril
5 days ago
Agreed, it's important to be careful with data types in JavaScript.
upvoted
0
times
...
Emiko
1 months ago
Definitely! Trying to convert strings to numbers can lead to NaN.
upvoted
0
times
...
Herman
1 months ago
D) console.loeg(10 / 'five');
upvoted
0
times
...
Valentin
2 months ago
B) console.log(parseInt ' (\'two')) ;
upvoted
0
times
...
...
Nickie
2 months ago
Hmm, let me think about this. I reckon options B and D are the ones that will give us NaN, right?
upvoted
0
times
Mabelle
1 months ago
No, actually it's options A and C that will output NaN.
upvoted
0
times
...
Jaime
1 months ago
Yes, you're correct. Both options B and D will output NaN.
upvoted
0
times
...
...
Nicolette
2 months ago
Ooh, this is a tricky one! I'm going to go with options B and D, because 'two' and 'five' are definitely not valid numbers.
upvoted
0
times
...
Gracia
2 months ago
I think options B and D will output NaN, as they involve converting non-numeric values to numbers.
upvoted
0
times
Jolanda
2 months ago
NaN is the result of trying to perform arithmetic with non-numeric values.
upvoted
0
times
...
Brittney
2 months ago
That's correct, those two options involve operations that result in NaN.
upvoted
0
times
...
Marge
2 months ago
Yes, because parseInt('two') and dividing by 'five' will result in NaN.
upvoted
0
times
...
Herminia
2 months ago
I agree, options B and D will output NaN.
upvoted
0
times
...
...
Charolette
2 months ago
I'm not sure, but I think option A and C also output NaN because dividing by 0 or a non-numeric value would result in NaN.
upvoted
0
times
...
Helene
2 months ago
I agree with Janae, because parseInt('two') and dividing by 'five' would result in NaN.
upvoted
0
times
...
Janae
3 months ago
I think option B and D output NaN.
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
az-700
pass4success
az-104
200-301
200-201
cissp
350-401
350-201
350-501
350-601
350-801
350-901
az-720
az-305
pl-300
Patrick
2 months agoCyril
5 days agoEmiko
1 months agoHerman
1 months agoValentin
2 months agoNickie
2 months agoMabelle
1 months agoJaime
1 months agoNicolette
2 months agoGracia
2 months agoJolanda
2 months agoBrittney
2 months agoMarge
2 months agoHerminia
2 months agoCharolette
2 months agoHelene
2 months agoJanae
3 months ago