Author API Methods
getItemDifficulty()
Gets the difficulty of the current Item being edited.
You would want to use this method so that you can make your own calculations based on the difficulty value in an adaptive assessment context, for example.
Examples
var itemDifficulty = authorApp.getItemDifficulty();
console.log(itemDifficulty);
Arguments
None.
Return value
Type number
The difficulty (as a number) for the current Item.
Type boolean
Returns false
if not in the Item editor view.
Related articles
- Using Adaptive Assessments in Learnosity
- The
setItemDifficulty()
method, which allows you to set the Item difficulty.