ExamGecko
Question list
Search
Search

Related questions











Question 394 - H14-231_V1.0 discussion

Report
Export

When a developer designs a JavaScript login page, he needs to use Internal Ability to call Data Abiliity to verify the username and password, which of the following can be modified to complete the function?

const ABILITY_TYPE_EXTERNAL=0;

var action=0;

action.bundleName='com.huawei.loginservice'; action.abilityName='com.huawei.loginservice.LoginDataAbility';

action.messageCode=ACTION_MESSAGE_CODE_PLUS;

action.data=actionData;

action.abilityType=ABILITY_TYPE_EXTERNAL; action.syncOption=ACTION_SYNC;

var result=await

FeatureAbility.callAbility(action);

A.
action.ability Type= ABILITY_TYPE_INTERNAL;
Answers
A.
action.ability Type= ABILITY_TYPE_INTERNAL;
B.
action.abiltyType =ABILITY_TYPE;
Answers
B.
action.abiltyType =ABILITY_TYPE;
C.
const ABILITY_TYPE_INTERNAL=1;
Answers
C.
const ABILITY_TYPE_INTERNAL=1;
D.
const ABILITY_TYPE_EXTERNAL= 2;
Answers
D.
const ABILITY_TYPE_EXTERNAL= 2;
Suggested answer: A, C
asked 18/09/2024
Faqeer Ali
42 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first