How to print a nested list with dictionaries inside to an HTML file?

With products I want to generate automatically these tables: And code for these tables should be:

Fun Market

For in python to javascript language

I have this line in python for list comprehension, however I don’t understand much of this language, and I wanted to convert it to javascript. the line is: next = [ (i,j) for i,j in getValidMoves(grid,…