@RandellDawson wrote:
When you return the above, the returned value is
undefined
. That is because console.log statements haveundefined
as a return value. In the second then (shown below),kanji.character
does not mean anything by itself. You can delete the line with the console.log and then referencedata
like you did in the console.log, but assign thekanji.character
of the 2nd element ofdata
to innerHTML.