Monday 11 September 2017

Microsoft 70-480 Question Answer

You need to test the value of the following variable in JavaScript.
var length = "75";
A block of code must execute if the length equals 75 regardless of the data type.
You need to use the statement that meets this requirement.
Which lines of code should you use? (Each answer presents a complete solution. Choose two.)

A. if (length = = = 75)
B. if (length = = 75)
C. if (length! = 75)
D. if (length = = "75")

Answer: BD


You are developing an application that uses a third-party JavaScript library named doWork().
The library occasionally throws an "object is null or undefined" error with an error code of -2146823281.
The application must:
Extract and handle the exceptions thrown by doWork() Continue normal program execution if other exceptions occur
You need to implement the requirements.
Which code segment should you use?



A. Option A
B. Option B
C. Option C
D. Option D

Answer: C

No comments:

Post a Comment

Note: only a member of this blog may post a comment.