HOTSPOT – You develop the following JavaScript code for a web resource that will be used in a model-driven app. For each of the following statements, select Yes if the statement is true. Otherwise, select No. NOTE: Each correct selection is worth one point. Hot Area:

QuestionsCategory: PL-400HOTSPOT – You develop the following JavaScript code for a web resource that will be used in a model-driven app. For each of the following statements, select Yes if the statement is true. Otherwise, select No. NOTE: Each correct selection is worth one point. Hot Area:
Admin Staff asked 4 months ago
HOTSPOT -
You develop the following JavaScript code for a web resource that will be used in a model-driven app.
 Image
For each of the following statements, select Yes if the statement is true. Otherwise, select No.
NOTE: Each correct selection is worth one point.
Hot Area:
 Image
















 

Suggested Answer: 
    Correct Answer Image

Box 1: Yes -
Problem patterns: Web-use-async -
There are multiple ways to interact with the server or request resources. Common approaches that allow for synchronous communications include the following
(These scenarios should be avoided.):
✑ Usage of the XMLHttpRequest object passing in false for the value of the async parameter for the open function call var requestXhr = new XMLHttpRequest();
// Explicitly setting the async parameter to false or supplying a variable with a value of false will force this as a synchronous      call. requestXhr.open('GET', '/test/test.txt', false);
Box 2: No -
=== - Strict Equality Comparison is already used in the code.
Box 3: No -
No debugger statement in the code, so web-remove-debug-script (avoid including debug script in non-development environments) does not apply.
Reference:
https://docs.microsoft.com/sr-cyrl-rs/powerapps/developer/model-driven-apps/best-practices/business-logic/interact-http-https-resources-asynchronously
 https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Strict_equality

This question is in PL-400 Microsoft Power Platform Developer Exam
For getting Microsoft Certified: Power Platform Developer Associate Certificate




Disclaimers:
The website is not related to, affiliated with, endorsed or authorized by Microsoft. 
The website does not contain actual questions and answers from Microsoft's Certification Exams.
Trademarks, certification & product names are used for reference only and belong to Microsoft.

Recommended

Welcome Back!

Login to your account below

Create New Account!

Fill the forms below to register

Retrieve your password

Please enter your username or email address to reset your password.