Below you can find the code that we will be reviewing today. Before you scroll down to section where I fix it, feel free to check how many mistakes you can find. Without running this code, one could expect that the output which it generates looks like this: But when…