1# AbilityResult 2 3The module defines the result code and data returned when a started ability is terminated. 4 5In the stage model, you can use [startAbilityForResult](js-apis-inner-application-uiAbilityContext.md#startabilityforresult) to obtain the AbilityResult object returned after the started ability is terminated by calling [terminateSelfWithResult](js-apis-inner-application-uiAbilityContext.md#terminateselfwithresult). 6 7In the FA model, you can use [startAbilityForResult](js-apis-ability-featureAbility.md#featureabilitystartabilityforresult7) to obtain the AbilityResult object returned after the started ability is terminated by calling [terminateSelfWithResult](js-apis-ability-featureAbility.md#featureabilityterminateselfwithresult7). 8 9> **NOTE** 10> 11> The initial APIs of this module are supported since API version 7. Newly added APIs will be marked with a superscript to indicate their earliest API version. 12 13## Modules to Import 14 15Stage model: 16```ts 17import { common } from '@kit.AbilityKit'; 18``` 19 20FA model: 21```ts 22import ability from '@ohos.ability.ability'; 23``` 24 25## Attributes 26 27**Atomic service API**: This API can be used in atomic services since API version 11. 28 29**System capability**: SystemCapability.Ability.AbilityBase 30 31| Name | Type | Read-only| Optional| Description | 32| ----------- | -------------------- | ---- | ---- | ------------------------------------------------------------ | 33| resultCode | number | No | No | Result code returned by the target party to the caller after the ability of the target party is started and then terminated.<br>- In normal cases, the result code sent by the target party is returned.<br>- In abnormal cases, the value **-1** is returned. | 34| want | [Want](js-apis-app-ability-want.md) | No | Yes | Data returned after the started ability is terminated.| 35