The browser storage localStorage is not available. Either your browser does not support it or you have disabled it or the maximum memory size is exceeded. Without localStorage your solutions will not be stored.

To be continued ...

JS Hero will be continued. Here's one last exercise.


Write a function digitsum that calculates the digit sum of an integer. The digit sum of an integer is the sum of all its digits. digitsum(192) should return 12.