Author API Methods
setItemDifficulty()
Sets the difficulty of the 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 hasUpdatedDifficulty = authorApp.setItemDifficulty(difficulty);
console.log(hasUpdatedDifficulty);
Arguments
-
difficulty number
The difficulty to apply to the current Item. This is a numeric measure according to the Rasch model.
Return value
Type boolean
Returns true
if successful.
Returns false
if unable to set the Item difficulty, for example, when not in the Item editor view.
Related articles
- Using Adaptive Assessments in Learnosity
- The
getItemDifficulty()
method, which allows you to get the Item difficulty.