For Each Loop Returning Undefined Learnjavascript

For Each Loop Returning Undefined Learnjavascript