When you return the above, the returned value is undefined
. That is because console.log statements have undefined
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 reference data
like you did in the console.log, but assign the kanji.character
of the 2nd element of data
to innerHTML.
↧
Iterate thru json fetch
↧